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

[BUG] Font hinting not working #31

Open
AndreKR opened this issue Aug 16, 2023 · 0 comments
Open

[BUG] Font hinting not working #31

AndreKR opened this issue Aug 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AndreKR
Copy link

AndreKR commented Aug 16, 2023

Describe the bug
Here's a magnified rendering of the text "bf" in the font Bahnschrift 20pt using java.awt.Graphics2D.drawString() in Processing:

image

Note how the stems end precisely at a pixel border, so there's no gray "aura".

Now here's the same text rendered using ImageScript:

image

As you can see the grid fitting is not working properly.

To confirm my suspicion I removed the hinting instructions from the letter "f" in FontForge. (Hints -> Edit Instructions... -> Edit -> delete everything) Sure enough now with Java I get the exact same faulty rendering for the "f" as with ImageScript:

image

Platform:

  • OS: Linux
  • Environment: NodeJS in Docker
  • Version: 1.2.16
@AndreKR AndreKR added the bug Something isn't working label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant