Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }