pango
Listing GTK accessible fonts
كتبه خالد يوم 26 مارس 2008I was trying to figure how to list fonts accessible to GTK (or pango actually), it turned out that pango.Context has a list_families() method that returns a tuple of pango.FontFamily objects.
Some thing like this:
window = gtk.Window()
context = window.get_pango_context()
families = context.list_families()
for i in families:
print i.get_name()
- علِّق
- قرأت 4256 مرة
Smart fonts vs. dumb fonts
كتبه خالد يوم 26 يناير 2008'Update: I rewrote this post and changed its title from Pango vs.
- 3 تعليقات
- اقرأ المزيد
- قرأت 9254 مرة
Nafees Nastaleeq font rendered by Pango (in Gedit)
كتبه خالد يوم 09 نوفمبر 2007- 6 تعليقات
- قرأت 16885 مرة