aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-12-16 23:21:56 +0800
committerclive <clive@FreeBSD.org>2001-12-16 23:21:56 +0800
commitab98b0a1da91f07e13be44260f0d28e2ffd3ad2d (patch)
treeabed09acf0adb829bdea60aa677b06e6fab73c59 /chinese
parentad53e7dd2100f61b0ea7c3a751e8d1561ce4a744 (diff)
downloadfreebsd-ports-gnome-ab98b0a1da91f07e13be44260f0d28e2ffd3ad2d.tar.gz
freebsd-ports-gnome-ab98b0a1da91f07e13be44260f0d28e2ffd3ad2d.tar.zst
freebsd-ports-gnome-ab98b0a1da91f07e13be44260f0d28e2ffd3ad2d.zip
Fix gdk_fontset_load () for Chinese fonts.
Submitted by: June-Yen Huang <jihuang@gate.sinica.edu.tw>
Diffstat (limited to 'chinese')
-rw-r--r--chinese/gnumeric/files/patch-aa14
-rw-r--r--chinese/gnumeric/files/patch-ab14
2 files changed, 16 insertions, 12 deletions
diff --git a/chinese/gnumeric/files/patch-aa b/chinese/gnumeric/files/patch-aa
index 3856b9fffe13..ffe9ac4029cc 100644
--- a/chinese/gnumeric/files/patch-aa
+++ b/chinese/gnumeric/files/patch-aa
@@ -1,10 +1,10 @@
---- src/dialogs/dialog-stf-preview.c.orig Mon Oct 30 17:44:01 2000
-+++ src/dialogs/dialog-stf-preview.c Mon Oct 30 17:44:31 2000
-@@ -711,7 +711,7 @@
- renderdata->gridgroup = NULL;
- renderdata->hashtable = g_hash_table_new (g_int_hash, g_int_equal);
-
-- renderdata->font = gdk_font_load ("fixed");
+--- src/dialogs/dialog-stf-preview.c.orig Fri Dec 14 13:14:57 2001
++++ src/dialogs/dialog-stf-preview.c Fri Dec 14 13:15:42 2001
+@@ -613,7 +613,7 @@
+ * The name of the default font for this locale.
+ * Preferably something with the correct encoding.
+ */
+- renderdata->font = gdk_fontset_load (_("fixed"));
+ renderdata->font = gdk_fontset_load ("-*-medium-r-normal-*-14-*-iso8859-1,-*-medium-r-normal--14-*-*-*-*-*-big5-0");
renderdata->charwidth = gdk_string_width (renderdata->font, "W");
renderdata->charheight = gdk_string_height (renderdata->font, "W");
diff --git a/chinese/gnumeric/files/patch-ab b/chinese/gnumeric/files/patch-ab
index e7ee23b97eea..5bab3845277b 100644
--- a/chinese/gnumeric/files/patch-ab
+++ b/chinese/gnumeric/files/patch-ab
@@ -1,14 +1,18 @@
---- src/style.c.orig Tue Sep 19 09:41:02 2000
-+++ src/style.c Mon Oct 30 23:11:36 2000
-@@ -70,9 +70,9 @@
+--- src/style.c.orig Fri Dec 14 13:16:08 2001
++++ src/style.c Fri Dec 14 13:18:30 2001
+@@ -79,13 +79,13 @@
}
/* Worst case scenario */
- font->gdk_font = gnome_display_font_get_gdk_font (font->dfont);
+ font->gdk_font = gdk_fontset_load ("-*-medium-r-normal-*-14-*-iso8859-1,-*-medium-r-normal--14-*-*-*-*-*-big5-0");
if (font->gdk_font == NULL)
-- font->gdk_font = gdk_font_load ("fixed");
-+ font->gdk_font = gdk_fontset_load ("-*-medium-r-normal-*-14-*-iso8859-1,-*-medium-r-normal--14-*-*-*-*-*-big5-0");
+ /* xgettext:
+ * The name of the default font for this locale.
+ * Preferably something with the correct encoding.
+ */
+- font->gdk_font = gdk_fontset_load (_("fixed"));
++ font->gdk_font = gdk_font_load (_("fixed"));
else
gdk_font_ref (font->gdk_font);