/** * render this area. */ public override void Render(IGraphicDevice device, float x, float y) { IFontHandle oldFont = device.SetFont(font); device.DrawGlyph(index, x, y); device.RestoreFont(oldFont); }
public override void Render(IGraphicDevice device, float x, float y) { IFontHandle savedFont = device.SetFont(font); device.DrawString(x, y, content); device.RestoreFont(savedFont); }