Russian fontset in gnome-pim/gnomecard/canvas.c



In the canvas.c file, someone set russian fontset as the default
font, like this:

----------------------------------------------------------------------
#define CARDNAME_FONTSET "-adobe-helvetica-medium-r-normal-*-18-*-*-*-p-*-*-*,-cronyx-helvetica-medium-r-normal-*-20-*-*-*-p-*-koi8-r"
#define TITLE_FONTSET "-adobe-helvetica-medium-r-*-*-14-*-*-*-p-*-*-*,-cronyx-helvetica-medium-r-normal-*-17-*-*-*-p-*-koi8-r"
...

        cardname_font = gdk_fontset_load (CARDNAME_FONTSET);
	title_font = gdk_fontset_load (TITLE_FONTSET);
        ...
----------------------------------------------------------------------

This is a easy solution to enable fontset, but not a proper one.  For
example, some locale needs an ISO8859-2 font with no ISO8859-1 font.

(I can't execute gnomecard with LANG=ko.)
----------------------------------------------------------------------
Gdk-WARNING **: Missing charsets in FontSet creation


Gdk-WARNING **:     ISO8859-1


Gdk-WARNING **:     KSC5601.1987-0


Gdk-CRITICAL **: file gdkfont.c: line 123 (gdk_font_ref): assertion `font != NULL' failed.
Segmentation fault
----------------------------------------------------------------------

I'll remove this hardcoded fontset stuff if noone objects.  Fontset
support should be done by gtkrc file.

-- 
Changwoo Ryu



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]