Re: Chinese Simplified appearance
- From: Owen Taylor <otaylor redhat com>
- To: "Boncek, John" <jboncek Hunter COM>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Chinese Simplified appearance
- Date: Wed, 31 Aug 2005 21:47:08 -0400
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
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]