Thanks to visit codestin.com
Credit goes to github.com

Skip to content

italic fonts sometimes cut off at left edge of TextBlocks #14

@txoof

Description

@txoof

Lower case descenders on some italic fonts stretch outside of the measured bounding box as calculated by Pillow. Adjusting the anchors for measurement bounds of multiline_textbox. This causes the left hand pixels to be cut off in some instances. the letters p, g, j appear to be most affected.

TextBlock currently uses the anchor ld, which should cover this, but for some reason some italic fonts are miss calcuated.
https://pillow.readthedocs.io/en/stable/handbook/text-anchors.html#text-anchors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions