Fredrik Lundh is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

effbot / pil-2009-raclette http://effbot.org/zone/pil-index.htm

Work repository for PIL 1.1.7 and beyond. The "default" branch should be fairly solid, the other branches less so. For production use, see the pil-117 repository.

Clone this repository (size: 1.6 MB): HTTPS / SSH
hg clone https://bitbucket.org/effbot/pil-2009-raclette
hg clone ssh://hg@bitbucket.org/effbot/pil-2009-raclette

Commit 08cb2fc09ac8 Raw commit »

commit
08cb2fc09ac8
parent
42ffca328702
branch
default

Fixed truetype positioning when first character has a negative left bearing.

Ned Batchelder writes:

In PIL 1.1.6, ImageDraw.text will position the string incorrectly if
the first character has a negative left bearing. To see the problem,
show a string like "///" in an italic font. The first slash will be
clipped at the left, and the string will be mis-positioned.

Comments

    Log in to comment »

    File Lines added Lines removed
    CHANGES 3
    _imagingft.c 1 1