Skip to content

ImageFont.truetype: error in windows fonts fallback #294

@ghost

Description

There is a small issue in Windows fall back in ImageFont.truetype (lines 246-248)

if windir:
    filename = os.path.join(windir, "fonts", font)
    return FreeTypeFont(font, size, index, encoding)

Second line should read

return FreeTypeFont(filename, size, index, encoding)

(PIL-1.1.7 has this right)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions