TtfFontPointerEx extension

on

Methods

close() → void

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Dispose of a previously-created font.
faceIsFixedWidth() bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query whether a font is fixed-width.
getAscent() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query the offset from the baseline to the top of a font.
getDescent() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query the offset from the baseline to the bottom of a font.
getFamilyName() String?

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query a font's family name.
getFontProperties() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Get the properties associated with a font.
getGlyphKerning(int previousCh, int ch, Pointer<Int32> kerning) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query the kerning size between the glyphs of two UNICODE codepoints.
getGlyphMetrics(int ch, Pointer<Int32> minx, Pointer<Int32> maxx, Pointer<Int32> miny, Pointer<Int32> maxy, Pointer<Int32> advance) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query the metrics (dimensions) of a font's glyph for a UNICODE codepoint.
getHeight() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query the total height of a font.
getHinting() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query a font's current FreeType hinter setting.
getKerning() bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query whether or not kerning is enabled for a font.
getLineSkip() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query the spacing between lines of text for a font.
getOutline() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query a font's current outline.
getSdf() bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query whether Signed Distance Field rendering is enabled for a font.
getStyle() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query a font's current style.
getStyleName() String?

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query a font's style name.
getWrapAlignment() int

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query a font's current wrap alignment option.
hasGlyph(int ch) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Check whether a glyph is provided by the font for a UNICODE codepoint.
isScalable() bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Query whether a font is scalable or not.
renderGlyphBlended(int ch, SdlColor fg) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render a single UNICODE codepoint at high quality to a new ARGB surface.
renderGlyphLcd(int ch, SdlColor fg, SdlColor bg) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render a single UNICODE codepoint at LCD subpixel quality to a new ARGB surface.
renderGlyphShaded(int ch, SdlColor fg, SdlColor bg) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render a single UNICODE codepoint at high quality to a new 8-bit surface.
renderTextBlended(String? text, SdlColor fg) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render UTF-8 text at high quality to a new ARGB surface.
renderTextBlendedWrapped(String? text, SdlColor fg, int wrapLength) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render word-wrapped UTF-8 text at high quality to a new ARGB surface.
renderTextLcd(String? text, int length, SdlColor fg, SdlColor bg) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render UTF-8 text at LCD subpixel quality to a new ARGB surface.
renderTextLcdWrapped(String? text, int length, SdlColor fg, SdlColor bg, int wrapLength) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render word-wrapped UTF-8 text at LCD subpixel quality to a new ARGB surface.
renderTextShaded(String? text, SdlColor fg, SdlColor bg) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render UTF-8 text at high quality to a new 8-bit surface.
renderTextShadedWrapped(String? text, SdlColor fg, SdlColor bg, int wrapLength) Pointer<SdlSurface>

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Render UTF-8 text at high quality to a new 8-bit surface.
setDirection(int direction) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set direction to be used for text shaping by a font.
setHinting(int hinting) → void

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set a font's current hinter setting.
setKerning(bool allowed) → void

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set if kerning is enabled for a font.
setLanguage(String? languageBcp47) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set language to be used for text shaping by a font.
setLineSlip(int lineskip) → void

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set the spacing between lines of text for a font.
setOutline(int outline) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set a font's current outline.
setScript(String? script) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set script to be used for text shaping by a font.
setSdf(bool enabled) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Enable Signed Distance Field rendering for a font.
setSize(double ptsize) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set a font's size dynamically.
setSizeDpi(double ptsize, int hdpi, int vdpi) bool

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set font size dynamically with target resolutions, in dots per inch.
setStyle(int style) → void

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set a font's current style.
setWrapAlignment(int align) → void

Available on Pointer<TtfFont>, provided by the TtfFontPointerEx extension

Set a font's current wrap alignment option.