TtfFontPointerEx extension
Methods
-
close(
) → void -
Available on Pointer<
Dispose of a previously-created font.TtfFont> , provided by the TtfFontPointerEx extension -
faceIsFixedWidth(
) → bool -
Available on Pointer<
Query whether a font is fixed-width.TtfFont> , provided by the TtfFontPointerEx extension -
getAscent(
) → int -
Available on Pointer<
Query the offset from the baseline to the top of a font.TtfFont> , provided by the TtfFontPointerEx extension -
getDescent(
) → int -
Available on Pointer<
Query the offset from the baseline to the bottom of a font.TtfFont> , provided by the TtfFontPointerEx extension -
getFamilyName(
) → String? -
Available on Pointer<
Query a font's family name.TtfFont> , provided by the TtfFontPointerEx extension -
getFontProperties(
) → int -
Available on Pointer<
Get the properties associated with a font.TtfFont> , provided by the TtfFontPointerEx extension -
getGlyphKerning(
int previousCh, int ch, Pointer< Int32> kerning) → bool -
Available on Pointer<
Query the kerning size between the glyphs of two UNICODE codepoints.TtfFont> , provided by the TtfFontPointerEx extension -
getGlyphMetrics(
int ch, Pointer< Int32> minx, Pointer<Int32> maxx, Pointer<Int32> miny, Pointer<Int32> maxy, Pointer<Int32> advance) → bool -
Available on Pointer<
Query the metrics (dimensions) of a font's glyph for a UNICODE codepoint.TtfFont> , provided by the TtfFontPointerEx extension -
getHeight(
) → int -
Available on Pointer<
Query the total height of a font.TtfFont> , provided by the TtfFontPointerEx extension -
getHinting(
) → int -
Available on Pointer<
Query a font's current FreeType hinter setting.TtfFont> , provided by the TtfFontPointerEx extension -
getKerning(
) → bool -
Available on Pointer<
Query whether or not kerning is enabled for a font.TtfFont> , provided by the TtfFontPointerEx extension -
getLineSkip(
) → int -
Available on Pointer<
Query the spacing between lines of text for a font.TtfFont> , provided by the TtfFontPointerEx extension -
getOutline(
) → int -
Available on Pointer<
Query a font's current outline.TtfFont> , provided by the TtfFontPointerEx extension -
getSdf(
) → bool -
Available on Pointer<
Query whether Signed Distance Field rendering is enabled for a font.TtfFont> , provided by the TtfFontPointerEx extension -
getStyle(
) → int -
Available on Pointer<
Query a font's current style.TtfFont> , provided by the TtfFontPointerEx extension -
getStyleName(
) → String? -
Available on Pointer<
Query a font's style name.TtfFont> , provided by the TtfFontPointerEx extension -
getWrapAlignment(
) → int -
Available on Pointer<
Query a font's current wrap alignment option.TtfFont> , provided by the TtfFontPointerEx extension -
hasGlyph(
int ch) → bool -
Available on Pointer<
Check whether a glyph is provided by the font for a UNICODE codepoint.TtfFont> , provided by the TtfFontPointerEx extension -
isScalable(
) → bool -
Available on Pointer<
Query whether a font is scalable or not.TtfFont> , provided by the TtfFontPointerEx extension -
renderGlyphBlended(
int ch, SdlColor fg) → Pointer< SdlSurface> -
Available on Pointer<
Render a single UNICODE codepoint at high quality to a new ARGB surface.TtfFont> , provided by the TtfFontPointerEx extension -
renderGlyphLcd(
int ch, SdlColor fg, SdlColor bg) → Pointer< SdlSurface> -
Available on Pointer<
Render a single UNICODE codepoint at LCD subpixel quality to a new ARGB surface.TtfFont> , provided by the TtfFontPointerEx extension -
renderGlyphShaded(
int ch, SdlColor fg, SdlColor bg) → Pointer< SdlSurface> -
Available on Pointer<
Render a single UNICODE codepoint at high quality to a new 8-bit surface.TtfFont> , provided by the TtfFontPointerEx extension -
renderTextBlended(
String? text, SdlColor fg) → Pointer< SdlSurface> -
Available on Pointer<
Render UTF-8 text at high quality to a new ARGB surface.TtfFont> , provided by the TtfFontPointerEx extension -
renderTextBlendedWrapped(
String? text, SdlColor fg, int wrapLength) → Pointer< SdlSurface> -
Available on Pointer<
Render word-wrapped UTF-8 text at high quality to a new ARGB surface.TtfFont> , provided by the TtfFontPointerEx extension -
renderTextLcd(
String? text, int length, SdlColor fg, SdlColor bg) → Pointer< SdlSurface> -
Available on Pointer<
Render UTF-8 text at LCD subpixel quality to a new ARGB surface.TtfFont> , provided by the TtfFontPointerEx extension -
renderTextLcdWrapped(
String? text, int length, SdlColor fg, SdlColor bg, int wrapLength) → Pointer< SdlSurface> -
Available on Pointer<
Render word-wrapped UTF-8 text at LCD subpixel quality to a new ARGB surface.TtfFont> , provided by the TtfFontPointerEx extension -
renderTextShaded(
String? text, SdlColor fg, SdlColor bg) → Pointer< SdlSurface> -
Available on Pointer<
Render UTF-8 text at high quality to a new 8-bit surface.TtfFont> , provided by the TtfFontPointerEx extension -
renderTextShadedWrapped(
String? text, SdlColor fg, SdlColor bg, int wrapLength) → Pointer< SdlSurface> -
Available on Pointer<
Render UTF-8 text at high quality to a new 8-bit surface.TtfFont> , provided by the TtfFontPointerEx extension -
setDirection(
int direction) → bool -
Available on Pointer<
Set direction to be used for text shaping by a font.TtfFont> , provided by the TtfFontPointerEx extension -
setHinting(
int hinting) → void -
Available on Pointer<
Set a font's current hinter setting.TtfFont> , provided by the TtfFontPointerEx extension -
setKerning(
bool allowed) → void -
Available on Pointer<
Set if kerning is enabled for a font.TtfFont> , provided by the TtfFontPointerEx extension -
setLanguage(
String? languageBcp47) → bool -
Available on Pointer<
Set language to be used for text shaping by a font.TtfFont> , provided by the TtfFontPointerEx extension -
setLineSlip(
int lineskip) → void -
Available on Pointer<
Set the spacing between lines of text for a font.TtfFont> , provided by the TtfFontPointerEx extension -
setOutline(
int outline) → bool -
Available on Pointer<
Set a font's current outline.TtfFont> , provided by the TtfFontPointerEx extension -
setScript(
String? script) → bool -
Available on Pointer<
Set script to be used for text shaping by a font.TtfFont> , provided by the TtfFontPointerEx extension -
setSdf(
bool enabled) → bool -
Available on Pointer<
Enable Signed Distance Field rendering for a font.TtfFont> , provided by the TtfFontPointerEx extension -
setSize(
double ptsize) → bool -
Available on Pointer<
Set a font's size dynamically.TtfFont> , provided by the TtfFontPointerEx extension -
setSizeDpi(
double ptsize, int hdpi, int vdpi) → bool -
Available on Pointer<
Set font size dynamically with target resolutions, in dots per inch.TtfFont> , provided by the TtfFontPointerEx extension -
setStyle(
int style) → void -
Available on Pointer<
Set a font's current style.TtfFont> , provided by the TtfFontPointerEx extension -
setWrapAlignment(
int align) → void -
Available on Pointer<
Set a font's current wrap alignment option.TtfFont> , provided by the TtfFontPointerEx extension