[sugar] GTK/pango fonts and non-european languages
Benjamin M. Schwartz
bmschwar at fas.harvard.edu
Sun Feb 10 21:01:47 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I use monospace fonts to render numeric fields in each of my activities. For
example, at one point to set the font for a label I use:
valuefont = pango.FontDescription()
valuefont.set_family("monospace")
valuefont.set_absolute_size(300*pango.SCALE)
self.value.modify_font(valuefont)
This works perfectly in European LOCALEs. In Arabic, the resulting font
displays Western-style Arabic numerals, but in a font that is script-like and
definitely not mono-spaced.
Is this correct behavior? What is the recommendation regarding monospace,
numeric displays, and non-european locales?
- --Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHr6yLUJT6e6HFtqQRApYPAJ4mxTETG4aw8abZhY8BK1Xuj487EQCePxQf
teZN5AYyBB5NDNHk+GnS3Rg=
=og0p
-----END PGP SIGNATURE-----
More information about the Sugar
mailing list