public float GetHeight(char chr) { AddGlyph(chr); CGlyph glyph = _Glyphs[(int)_htGlyphs[chr]]; float factor = CFonts.Height / glyph.Texture.height; return(glyph.Texture.height * factor); }
public void DrawGlyph(char chr, float x, float y, float h, float z, SColorF color) { AddGlyph(chr); CFonts.Height = h; CGlyph glyph = _Glyphs[(int)_htGlyphs[chr]]; float factor = h / glyph.Texture.height; float d = glyph.SIZEh / 5f * factor; CDraw.DrawTexture(glyph.Texture, new SRectF(x - d, y, glyph.Texture.width * factor, h, z), color); }
public void DrawGlyphReflection(char chr, float x, float y, float h, float z, SColorF color, float rspace, float rheight) { AddGlyph(chr); CFonts.Height = h; CGlyph glyph = _Glyphs[(int)_htGlyphs[chr]]; float factor = h / glyph.Texture.height; float d = glyph.SIZEh / 5f * factor; SRectF rect = new SRectF(x - d, y, glyph.Texture.width * factor, h, z); CDraw.DrawTextureReflection(glyph.Texture, rect, color, rect, rspace, rheight); }