public Pixmap.Layer GetGlyphBitmap(char glyph)
{
Rect targetRect;
int charIndex = (int)glyph > CharLookup.Length ? 0 : CharLookup[(int)glyph];
this.pixelData.LookupAtlas(charIndex, out targetRect);
Pixmap.Layer subImg = new Pixmap.Layer(
MathF.RoundToInt(targetRect.W),
MathF.RoundToInt(targetRect.H));
this.pixelData.MainLayer.DrawOnto(subImg, BlendMode.Solid,
-MathF.RoundToInt(targetRect.X),
-MathF.RoundToInt(targetRect.Y));
return subImg;
}