#Weird font inconsistency

1 messages · Page 1 of 1 (latest)

merry iron
#

I have two pixel fonts of identical size, yet GameMaker seems to think the heights of the fonts are totally different.

In one font, GameMaker thinks the height is 17 pixels high, and in another 15 pixels high. Both fonts are only 12 pixels high. What gives?

merry iron
#

the fonts in question

#

for the font on the left, these are some of the glyphs:

"glyphs": {
    "32": {"character":32,"h":15,"offset":0,"shift":5,"w":5,"x":2,"y":2,},
    "33": {"character":33,"h":15,"offset":0,"shift":2,"w":1,"x":62,"y":53,},
    "34": {"character":34,"h":15,"offset":0,"shift":4,"w":3,"x":65,"y":53,},
    ...
},
#

and the same for the font on the right:

"glyphs": {
    "32": {"character":32,"h":17,"offset":0,"shift":5,"w":5,"x":2,"y":2,},
    "33": {"character":33,"h":17,"offset":0,"shift":2,"w":1,"x":218,"y":40,},
    "34": {"character":34,"h":17,"offset":0,"shift":4,"w":3,"x":221,"y":40,},
    ...
}```
#

what is especially strange is that each "cell" containing a character is only 16 pixels high in the editor, so a height of 17 is literally impossible

#

okay so it's bit font maker which is actually generating the TTF wrong, i used YALs converter and now it works (yippee)