Notdef provider¶
Danger
This is a mcfonts-specific provider.
The notdef provider overrides the hardcoded "notdef" glyph that is used when a character is not found in a font.
It is similar to a bitmap provider, except for providing only 1 specific glyph.
The value of its type field is "notdef".
Its priority is 5.
It stores a bitmap glyph.
Structure¶
{
"type": "notdef",
"ascent": int,
"height": optional int,
"file": resource location
}
- ascent : int¶
Vertical shift of this glyph.
- height : int¶
On-screen height of this glyph.
- file : str¶
Resource location to texture file to use.
Usage¶
When loaded, the notdef provider will only return a glyph for the character "notdef".
All other characters will return None.