Adds two trivial fixes to the gdk_fontset_load() argument, so
numbers and alphabets on widgets like the leftest column can be shown correctly. Reported by: keichii
This commit is contained in:
parent
b412f93213
commit
4229911ec6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39227
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
renderdata->hashtable = g_hash_table_new (g_int_hash, g_int_equal);
|
||||
|
||||
- renderdata->font = gdk_font_load ("fixed");
|
||||
+ renderdata->font = gdk_fontset_load ("-*-medium-r-normal--14-*-*-*-*-*-big5-0");
|
||||
+ 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");
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
/* Worst case scenario */
|
||||
- font->gdk_font = gnome_display_font_get_gdk_font (font->dfont);
|
||||
+ font->gdk_font = gdk_fontset_load ("-*-medium-r-normal--14-*-*-*-*-*-big5-0");
|
||||
+ 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-*-*-*-*-*-big5-0");
|
||||
+ font->gdk_font = gdk_fontset_load ("-*-medium-r-normal-*-14-*-iso8859-1,-*-medium-r-normal--14-*-*-*-*-*-big5-0");
|
||||
else
|
||||
gdk_font_ref (font->gdk_font);
|
||||
|
||||
|
|
Loading…
Reference in a new issue