According to SDK documentation for GFX library :
“After generating a font, you must change FONT_INFO::height to be described in bits (pixels), not pages”
But in the provided 2 fonts with the SDK GFX example:
orkney_8pts.c the height of the font is 16 pixels, but at the end:
const FONT_INFO orkney_8ptFontInfo =
{
15, // Character height
….
i.e. there is 1 bit difference between actual font height and declared at the end.
orkney_24pts.c the height of the font is 47 pixels, but at the end:
const FONT_INFO orkney_24ptFontInfo =
{
45, // Character height
….
i.e. there is 2 bits difference between actual font height and declared at the end.
Could somebody elaborate where/ why this discrepancy came?
Thanks