Re: Chinese Simplified appearance

On Wed, 2005-08-31 at 15:26 -0500, Boncek, John wrote:
> Attached is a screen shot of a screen we are generating using Pango
> with GTK 2.2.4.  It is a print preview screen with the printout mostly
> in Chinese Simplified.  Does the Chinese look correct?  It looks to us
> like Pango may have selected different sizes or boldness of fonts for
> different characters in the same line in many cases.  Does it do this
> automatically when the selected font size doesn't have all the
> characters, or is there some other problem?

To get good looking display of East Asian languages, you generally have
to let the system know *which* language the text is. Otherwise, it will
select a font character by character and unless your lucky and the
right font happens to be first, you'll get this sort of ugly mix.

You can do that various ways:

 - Use the LANG environment variable

 - Use pango_context_set_language()

 - Use a language PangoAttribute 

 - Use <span lang='zh-cn'>[blah]</span> PangoMarkup


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