# Sandbox.Bitmap.CreateFromGlyph

```csharp
static Bitmap CreateFromGlyph(byte[] fontData, int character, int height)
```

Draws one glyph of a TrueType or OpenType font, white with its coverage in alpha, scaled so its outline is
`height` pixels tall and cropped tightly to it. Useful for icon fonts. The font is only read
for this call: it isn't added to the fonts that text rendering and UI can use.

### Parameters

- `fontData` (`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

`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.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
