Re: GTK+2.0 Chinese (or CJK) fonts on win32

"astro_chuck" <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
> It turns out it is rather simple to fix this: In <top>/etc/pango,
> create a file pango.aliases containing the lines:
> 
> sans = sans
> sans += "mingliu"
> 
> Thanks to Hans Breuer for the info.
> 
> I think MingLiU is a Traditional Chinese font? If not, replace with
> whatever font you want to use. Unfortunately, it doesn't seem to be
> possible to specify locale-specific settings in the pango.aliases
> file.
> 
> --tml

Thanks tml, you are right, mingliu is a traditional. However it still
doesn't work after I put these lines in pango.aliases:

sans = sans
sans += "MingLiU"

if pango.aliaes changes to be this:

sans = sans;
sans += "MingLiU";

here's the error output:

Pango:C:\gtk\etc\pango\pango.aliases:2: Junk after value string

** (hello:796): WARNING **: Couldn't load font "Sans 10" falling back
to "Sans 10"

** (hello:796): WARNING **: Couldn't load font "Sans 10" falling back
to "Sans 10"

** (hello:796): WARNING **: All font failbacks failed!!!!

For your interest:

Whenever I instantiate a GtkFontSelectionDialog, errors come out:

(hello:496): GLib-CRITICAL **: file gconvert.c: line 497 (g_convert):
assertion `str != NULL' failed

(hello:496): GLib-CRITICAL **: file gconvert.c: line 497 (g_convert):
assertion `str != NULL' failed

(hello:496): GLib-CRITICAL **: file gconvert.c: line 497 (g_convert):
assertion `str != NULL' failed

(hello:496): GLib-CRITICAL **: file gconvert.c: line 497 (g_convert):
assertion `str != NULL' failed

(hello:496): GLib-CRITICAL **: file gconvert.c: line 497 (g_convert):
assertion `str != NULL' failed

(hello:496): GLib-CRITICAL **: file gconvert.c: line 497 (g_convert):
assertion `str != NULL' failed

(hello:496): GLib-CRITICAL **: file gconvert.c: line 497 (g_convert):
assertion `str != NULL' failed

I also want to report an issue about gimp.
It crashes at it's first start when locale isn't set to be en_US.


regards,
--Darren
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.