Skip to content

Commit 7dbd223

Browse files
committed
bflibrary: Get font height based on tall character, not space
1 parent 935e599 commit 7dbd223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bflibrary/src/general/gfont.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ void LbDrawCharUnderline(long pos_x, long pos_y, long width, long height,
114114

115115
long LbTextLineHeight(void)
116116
{
117-
return LbSprFontCharHeight(lbFontPtr, ' ');
117+
return LbSprFontCharHeight(lbFontPtr, 'W');
118118
}
119119

120120
long LbTextHeight(const char *text)
121121
{
122-
return LbSprFontCharHeight(lbFontPtr, ' ');
122+
return LbSprFontCharHeight(lbFontPtr, 'W');
123123
}
124124

125125
long LbTextCharWidth(const ulong chr)

0 commit comments

Comments
 (0)