I want to get PIL to draw the text using their fonts to get them, I use this code:
fdia = Gtk.FontSelectionDialog("Font")
response = fdia.run()
if response == Gtk.ResponseType.OK:
self.ui.eFont.set_text(fdia.get_font_name())
fdia.destroy()
(It's return "Impact 14", for example)
but PIL requires a full path, how to get it? I try to pango:
draw.text((5, 5), "exm", font=pango.FontDescription("Impact 10"),\
fill="#FFFFFF")
but PIL says :
AttributeError: 'pango.FontDescription' object has no attribute 'getmask'
Any ideas? Thanks.