Font.glyphMetrics - multiple declarations

Function Font.glyphMetrics

Wraps TTF_GlyphMetrics to the metrics of a glyph in the Font

GlyphMetrics glyphMetrics (
  wchar glyph
) @trusted const;

Parameters

NameDescription
glyph wchar glyph to get the metrics of

Returns

GlyphMetrics of the glyph

Throws

dsdl.SDLException if unable to get glyph metrics

Function Font.glyphMetrics

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

GlyphMetrics glyphMetrics (
  dchar glyph
) @trusted const;

Parameters

NameDescription
glyph dchar glyph to get the metrics of

Returns

GlyphMetrics of the glyph

Throws

dsdl.SDLException if unable to get glyph metrics