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

"Pixel size" option #15

Open
cscott opened this issue Aug 1, 2021 · 1 comment
Open

"Pixel size" option #15

cscott opened this issue Aug 1, 2021 · 1 comment

Comments

@cscott
Copy link

cscott commented Aug 1, 2021

Trying to figure out points and 1/72 and 141 DPI and such not is crazy-making. Can we have an option for "px" size, that tries to convert your px into the right "points" value to yield a font approximate the given number of pixels high?

For example, the GFXglyph array for a particular font I have is named "12pt7bGlyphs" (ie, it was "12 points") but the third component (the y size) for most glyphs is 15. So I'd call this a 15px font...

@ropg
Copy link
Owner

ropg commented Aug 1, 2021

Size is such a complicated thing with these conversion tools because the fonts can contain lots of size information that determines the size that actually comes out. Also my interface is just a thin layer on top of the Adafruit command line tool. Sure, I could add bells and whistles, but the more I do, the more I take responsibility for what comes out. ;-)

Also, I don't want to have to write/integrate code that analyses the whole font to try and figure out properties of it. Look at this thing as an imperfect tool. One that lets you do the things the Adafruit tool lets you do, but without the hassle of compiling, and with a very basic preview of what it'll look like.

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

No branches or pull requests

2 participants