Hi, basically i want to do a custom font management…
now, I have a font with limited-set of characters, take a look of this picture…
the left & right side of the picture is a set of ASCII Characters that available in a specific font, basically it work like this:
for(int y = 0; y < 16; y++) {
for(int x = 0; x < 8; x++) {
if(font.HasCharacter((int)( (y << 3) | x) )))
{
// Character is Available,
// Label with a Round Square Border
// with specific character will appear
} else {
// Just load unbordered label
// with default font (Arial) displayed
}
}
}
now this is the problem, you can see at the picture, both right & left is the same font, when this font in imported as unicode, only fonts that supported (in this case is caps character only) are displayed, which is work as expected.
now change it to dynamic fonts, as you can see the whole character is displayed (the rest unsupported is subtituted with arial, as the engine does when the font is dynamic), this not expected.
why this happen and how to fix it? so Font.HasCharacter will return true only when it available on specific font, even at dynamic font, or it is possible to turn off font fallbacks when using dynamic font?
any answer is appreciated.
anybody else?
– Barnacleok, the last bump,,,,
– BarnacleI'm also curious to know more about this issue. I want to resize the text based on the font used (since our fallback font is a bit bigger than the standard one) but there's no way to know if the character is being rendered using a fallback font.
– Erena