I am wondering how to create a bitmapped font.
It is obvious that you scan all pixels until they are not all background colour, then use that as the value in m_font.pOffset.
It is also obvious you then can extract the width of the char the same way, and the use of the little line at the top gives you your kerning.
But how do you define a space character?
does space have to be the first char in the mapping table ?
or do you just need a single line of background colour, and GapiDraw tests the char in the mapping table to see if it is a space char?
In simple fonts, how wide is a space char?
...
It is obvious that you scan all pixels until they are not all background colour, then use that as the value in m_font.pOffset.
It is also obvious you then can extract the width of the char the same way, and the use of the little line at the top gives you your kerning.
But how do you define a space character?
does space have to be the first char in the mapping table ?
or do you just need a single line of background colour, and GapiDraw tests the char in the mapping table to see if it is a space char?
In simple fonts, how wide is a space char?
...