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

-- 
PIL font renderer cuts off descender of some TrueType fonts
https://bugs.launchpad.net/bugs/677208
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to