#!/usr/bin/env python
"""
I've also caught it chopping off ascenders and the first glyph in a line.
"""
from PIL import Image, ImageDraw, ImageFont
import os
fontname = os.path.expanduser('~/.fonts/FinkHeavy.ttf')
im = Image.new('L', (256, 256))
fh = ImageFont.truetype(fontname, 64)
ImageDraw.Draw(im).text((62, 64), "jq{", 254, fh)
im.show()
#!/usr/bin/env python expanduser( '~/.fonts/ FinkHeavy. ttf') truetype( fontname, 64) Draw(im) .text(( 62, 64), "jq{", 254, fh)
"""
I've also caught it chopping off ascenders and the first glyph in a line.
"""
from PIL import Image, ImageDraw, ImageFont
import os
fontname = os.path.
im = Image.new('L', (256, 256))
fh = ImageFont.
ImageDraw.
im.show()