Skip to content

Variable character width extended ASCII vs non-extended ASCII #5

@stroobandt

Description

@stroobandt

Dear Peter,

I am experiencing considerable variation in character width when creating fonts with 255 versus 128 ASCII characters. See the example below. Is there a way to overcome this?

Also, which ASCII extension code page are you using? This is not documented. Does it depend on my PC settings?

$ ./font_to_py.py -x font.ttf 12 font12.py
Writing Python font file.
Height set in 2 passes. Actual height 11 pixels.
Max character width 11 pixels.
font12.py written successfully.

$ ./font_to_py.py -x -l 255 font.ttf 12 font12x.py
Writing Python font file.
Height set in 2 passes. Actual height 12 pixels.
Max character width 9 pixels.
font12x.py written successfully.

It does not seem quite logical to me that when more glyphs are present, the slimmer the font gets.

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