Re: Chinese anti-alias fonts



On Wed, 27 Mar 2002, Darren Chuck wrote:

> Currently I have difficult problem in developing
> application using chinese anti-alias fonts on gtk+ 2
> 
> Can we use arphic big5 fonts on pango? I find that the application works
> ok when GDK_USE_XFT is unset, but not chinese fonts can be shown when it
> is set to 1.
> 
> $ xlsfonts |grep big5
> ...
> -default-ming-medium-r-normal--10-100-72-72-p-100-big5-0
> -default-ming-medium-r-normal--12-120-72-72-p-120-big5-0
> -default-ming-medium-r-normal--14-140-72-72-p-140-big5-0
> -default-ming-medium-r-normal--16-160-72-72-p-160-big5-0
> -default-ming-medium-r-normal--18-180-72-72-p-180-big5-0
> -default-ming-medium-r-normal--20-200-72-72-p-200-big5-0
> ...
> 
> even i have add the font into pangox.alias:
> -default-ming-medium-r-normal--*-*-*-*-*-*-big5-0
> 
> I have dig though many materials online, but they can't help much. I
> wish we can put more materials on this, particularly on chinese fonts.

Antialiased fonts are not done by the X server. They are client side.
You have to edit your /etc/X11/XftConfig (or wherever your distro places 
it) and add the ming font to the sans alias.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a scarfaced soccer-playing cowboy with nothing left to lose. She's a 
brilliant winged politician in the witness protection scheme. They fight 
crime! 




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