Font.glyphMetrics

Wraps TTF_GlyphMetrics to the metrics of a glyph in the dsdl2.ttf.Font

  1. GlyphMetrics glyphMetrics(wchar glyph)
    class Font
    const @trusted
    glyphMetrics
    (
    wchar glyph
    )
  2. GlyphMetrics glyphMetrics(dchar glyph)

Parameters

glyph wchar

wchar glyph to get the metrics of

Return Value

dsdl2.ttf.GlyphMetrics of the glyph

Throws

dsdl.SDLException if unable to get glyph metrics

Meta