Comment 2 for bug 677208

Revision history for this message
Damian Yerrick (tepples) wrote :

#!/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()