Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF SDK GFX library font parameters discrepancies

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

Parents Reply Children
Related