-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fonts generated by FontBM differ from their BMFont equivalents in size #11
Comments
SnowB Use this instead ! Thank me later ;) |
Hi @edwinfinch, I just tried to reproduce the problem, here is a picture to compare the glyphs (font size == 88): Looks pretty the same (considering different rendering engines: WinGDI and Freetype2). Command line for fontbm:
Config file for BMFont:
I can try to reproduce the problem with your copy of bebas_regular.ttf, could you please share it? |
Thanks for taking a look at this Vlad! Here's my copy of Bebas Regular: https://io.lazarus.watch/_resources/other/bebas_regular.ttf Let me know if I can be of any more help. |
I tried with your font, the same result, then noticed your BMFont data file contains size=104, it means "Match char height" (Font Settings dialog) is not ticked (otherwise this value is negative). In this mode BMFont/fontbm sizes don't correspondent to each other, I think it was the problem. |
added a notify about char sizes to README |
Hi Vlad,
First off, FontBM seems like a great tool that should work perfectly for my project. I appreciate the work you've done with it.
I've been able to integrate it seamlessly so far, I'm just running into one issue.
I generated a font using FontBM on macOS, and I noticed the size of the characters generated by FontBM differ quite a lot from the exact same (or even slightly lesser) font size on BMFont.
BMFont
FontBM
This is strange since the font size on FontBM is even a tad smaller than the one on BMFont, yet the fonts themselves are still larger. You can also see this numerically by checking the width/height values of each character.
BMFont (truncated to save space)
FontBM (also truncated)
The command I'm using to generate this font is:
fontbm --font-file fonts/bebas_regular.ttf --output ./notenduro/resources-round-240x240/fonts/watchface/bebas_time_large --background-color 0,0,0 --spacing-vert 1 --spacing-horiz 1 --chars 48,49,50,51,52,53,54,55,56,57,58 --font-size 88
Is there something I'm doing wrong here?
Thank you very much for your time.
The text was updated successfully, but these errors were encountered: