What fonts are available to use with PIL on App Engine?
I know I can upload a font as part of the application but what I basically want is a system provided sans-serif that will work with unicode characters that is a good looking Helvetica (or alternative). Google servers may already have some fonts installed and this is what I would like some insight into.
I would like to find a font to use that is unicode capable so Japanese and other characters will render properly using PIL.
I have a web page that renders unicode characters properly using font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
When I use PIL to render the same unicode characters they do not render properly. The font I uploaded as part of the app does not have the necessary unicode characters in the font.
Here are the relevant python lines of code from what I am using now.
import Image, ImageDraw, ImageFont
draw = ImageDraw.Draw(my_output)
font = ImageFont.truetype("FontIAmUsing.otf", font_size, encoding="utf-8")
draw.text((5, 51), 'abc', fill='#2A2A2A', font=font)
import os, PIL; print os.listdir(os.path.dirname(PIL.__file__))from shell-27.appspot.com) - bossylobster"FontIAmUsing.otf"typically live? IIUC, it's supposed to be in the directory you're calling the code in. Could you not just include the font with your application and deploy with the file? This article seems to cover where fonts are kept and how you might include them locally. - bossylobster