static Bitmap CreateFromGlyph (System.Byte[] fontData, int character, int height)

Parameters

NameTypeDescription
fontData System.Byte[] The contents of a .ttf or .otf file, at most 32 MB.
character int The Unicode code point to draw. A symbol font that keeps its characters at U+F020 to U+F0FF is also searched for there, so its glyphs can be asked for by their single byte character.
height int Height of the bitmap in pixels, from 1 to 4096. A glyph that would be wider than 4096 pixels is scaled down to fit.

Returns

TypeDescription
Bitmap The glyph, or null if the data is empty, over 32 MB or not a font we can read, or the font has no outline for this character.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.