Skip to content

ImageFont.truetype: error in windows fonts fallback #294

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)

Activity

  1. aclark4life commented on Jul 22, 2013

    @aclark4life
    Member

    Thanks, can you send a pull request?

  2. aclark4life commented on Jul 22, 2013

    @aclark4life
    Member

    Great! One easy way: fork Pillow then edit through the web, then send pull request

  3. wiredfool commented on Sep 24, 2013

    @wiredfool
    Member

    closed by #295

  4. added a commit that references this issue on Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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