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

Tool doesn't generate the space char in any Font #6

Closed
tommyettinger opened this issue Feb 8, 2023 · 0 comments · Fixed by #7
Closed

Tool doesn't generate the space char in any Font #6

tommyettinger opened this issue Feb 8, 2023 · 0 comments · Fixed by #7

Comments

@tommyettinger
Copy link
Contributor

tommyettinger commented Feb 8, 2023

I'm not sure why this is, but on both TTF files I've run on so far, the char with id 32 (' ') does not appear in the generated font, regardless of whether I load the list of chars from a file or use an existing name like ascii. I can manually add space, but I don't know if I have the x-advance right and I don't know if kerning should be different with a space. Here are two fonts generated with msdf-gdx-gen and unaltered since; neither has a char with id=32 (space).

Iosevka-Slab.zip
Generated with: java.exe -jar msdfgen.jar -t mtsdf -d 1024 1024 -s 16 -p 5 -c Iosevka-Slab.txt Iosevka-Slab.ttf

YanoneKaffeesatz.zip
Generated with: java.exe -jar msdfgen.jar -t mtsdf -d 1024 1024 -s 60 -p 5 -c YanoneKaffeesatz-Regular.txt YanoneKaffeesatz-Regular.ttf

If you want, I can try to submit a PR, but like I said, I'm not sure why this happens.

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

Successfully merging a pull request may close this issue.

2 participants