Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to permanently change letter tracking/spacing #8

Open
jonpalmisc opened this issue Feb 2, 2021 · 3 comments
Open

Add ability to permanently change letter tracking/spacing #8

jonpalmisc opened this issue Feb 2, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@jonpalmisc
Copy link
Owner

jonpalmisc commented Feb 2, 2021

Some fonts look better when the space between letters is increased or decreased. Chang this manually in software such as Photoshop is tedious, and some software like Word or Excel makes it very difficult to make these changes. It would be nice to be able to modify tracking before generating static cuts.

For example, so I can make the font have the spacing shown on the bottom as default:

image

@jonpalmisc jonpalmisc added the enhancement New feature or request label Feb 2, 2021
@jonpalmisc jonpalmisc self-assigned this Feb 2, 2021
@jonpalmisc
Copy link
Owner Author

Sorry to bother you again, but do you think this would be possible @ViktorRubenko ? Are there sidebearing values in a table that I can uniformly scale, for example: multiply them by 1.2? I would really appreciate your input on this! If you just tell me what I need to do, I can write the code.

@ViktorRubenko
Copy link
Contributor

ViktorRubenko commented Feb 2, 2021

You can get and set metrics with the hmtx table.
hmtx.metrics = {glyphName: (advanceWidth, lsb)}
rsb = aw - lsb - (xMax - xMin)
The problem is that when you scale negative sb (e.g. fraction sign) by 1.2, instead of increasing space, you will get a decrease.

@jonpalmisc
Copy link
Owner Author

jonpalmisc commented Feb 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants