Re: 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 did change fonts to fontsets, because, fonts were hardcoded and
there is/was no way to change them in gtkrc files. Correct solution is
to use standart  collection of font styles throughout GNOME, and control 
that collection vi gtkrc file. 

Did you read previous discussion on that topic?


> (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
> ----------------------------------------------------------------------

Strange! Do you have ISO8859-1 fonts installed? I know that when fontset 
fails to find koi-r fonts it just resorts to iso8859-1.


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

 I do!(I actually do not understend what you are going to do) I'd
prefer if you just add korean fonts to a fontset. It is not a proper
solution, but it will work for now.  Later we will have a set of
generic fonts styles defined via gtkrc.


 Sergey



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