Support and General Use > Theming and Appearance Customization
determine font pixel-heights
bascule:
Forgive my ignorance, but doesn't the name give it away?
Nimbus 14 = 14 pixel-high font, no?
Yotto:
I think you're right, assuming the font has a number in it. Many of the fonts in my folder are lacking numbers.
lenny:
Wow that's awsome. I've never had anybody respond to me with a program!
Anyway...
used on rockbox_default.fnt
Output:
--- Code: ---Max width: 1536
Height: 2048
Ascent (baseline): 1792
Total characters: 65536
--- End code ---
That can't be right
(I'm on mac 10.4 fyi)
bk:
Hmmm, Macs are 64 bit arch, right? That'll screw fntinfo up.
This version should work but may not be ANSI compatible (gcc -ansi doesn't complain though). I'm not totally sure how to write portable C that handles variable int sizes but this should be a decent quick and dirty fix.
[attachment deleted by admin, too old]
lenny:
well, thanks. unfortunately the new fntinfo generates the same output for me. I have an old powerpc g4. I tried wikipedia to find out bit architecture info for ya but it's over my head. good news is when I run either fntinfo program on a font file with a number, the output for height is always 256 times the expected answer. For now that will work just fine for me.
Still, it seems like waaaayyy too much work to accomplish such a small thing. Oh well!
Perhaps:
1) all font names should be ended with the pixel height number
2) a chart should exist somewhere in the wiki
I vote for number 1 ;D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version