Font.glyphMetrics

Wraps TTF_GlyphMetrics32 (from SDL_ttf 2.0.18) to the metrics of a glyph in the dsdl2.ttf.Font

  1. GlyphMetrics glyphMetrics(wchar glyph)
  2. GlyphMetrics glyphMetrics(dchar glyph)
    class Font
    const @trusted
    static if(sdlTTFSupport >= SDLTTFSupport.v2_0_18)
    glyphMetrics
    (
    dchar glyph
    )

Parameters

glyph dchar

dchar glyph to get the metrics of

Return Value

dsdl2.ttf.GlyphMetrics of the glyph

Throws

dsdl.SDLException if unable to get glyph metrics

Meta