sdl2/generated/lib_sdl_ttf library

Properties

libSdl2Ttf DynamicLibrary
final

Functions

ttfByteSwappedUnicode(bool swapped) → void
Tell SDL_ttf whether UNICODE text is generally byteswapped.
ttfCloseFont(Pointer<TtfFont> font) → void
Dispose of a previously-created font.
ttfFontAscent(Pointer<TtfFont> font) int
Query the offset from the baseline to the top of a font.
ttfFontDescent(Pointer<TtfFont> font) int
Query the offset from the baseline to the bottom of a font.
ttfFontFaceFamilyName(Pointer<TtfFont> font) String?
Query a font's family name.
ttfFontFaceIsFixedWidth(Pointer<TtfFont> font) int
Query whether a font is fixed-width.
ttfFontFaces(Pointer<TtfFont> font) int
Query the number of faces of a font.
ttfFontFaceStyleName(Pointer<TtfFont> font) String?
Query a font's style name.
ttfFontHeight(Pointer<TtfFont> font) int
Query the total height of a font.
ttfFontLineSkip(Pointer<TtfFont> font) int
Query the recommended spacing between lines of text for a font.
ttfGetFontHinting(Pointer<TtfFont> font) int
Query a font's current FreeType hinter setting.
ttfGetFontKerning(Pointer<TtfFont> font) int
Query whether or not kerning is allowed for a font.
ttfGetFontKerningSizeGlyphs(Pointer<TtfFont> font, int previousCh, int ch) int
Query the kerning size of two 16-bit glyphs.
ttfGetFontKerningSizeGlyphs32(Pointer<TtfFont> font, int previousCh, int ch) int
Query the kerning size of two 32-bit glyphs.
ttfGetFontOutline(Pointer<TtfFont> font) int
Query a font's current outline.
ttfGetFontSdf(Pointer<TtfFont> font) bool
Query whether Signed Distance Field rendering is enabled for a font.
ttfGetFontStyle(Pointer<TtfFont> font) int
Query a font's current style.
ttfGetFontWrappedAlign(Pointer<TtfFont> font) int
Query a font's current wrap alignment option.
ttfGetFreeTypeVersion(Pointer<Int32> major, Pointer<Int32> minor, Pointer<Int32> patch) → void
Query the version of the FreeType library in use.
ttfGetHarfBuzzVersion(Pointer<Int32> major, Pointer<Int32> minor, Pointer<Int32> patch) → void
Query the version of the HarfBuzz library in use.
ttfGlyphIsProvided(Pointer<TtfFont> font, int ch) int
Check whether a glyph is provided by the font for a 16-bit codepoint.
ttfGlyphIsProvided32(Pointer<TtfFont> font, int ch) int
Check whether a glyph is provided by the font for a 32-bit codepoint.
ttfGlyphMetrics(Pointer<TtfFont> font, int ch, Pointer<Int32> minx, Pointer<Int32> maxx, Pointer<Int32> miny, Pointer<Int32> maxy, Pointer<Int32> advance) int
Query the metrics (dimensions) of a font's 16-bit glyph.
ttfGlyphMetrics32(Pointer<TtfFont> font, int ch, Pointer<Int32> minx, Pointer<Int32> maxx, Pointer<Int32> miny, Pointer<Int32> maxy, Pointer<Int32> advance) int
Query the metrics (dimensions) of a font's 32-bit glyph.
ttfInit() int
Initialize SDL_ttf.
ttfLinkedVersion() Pointer<SdlVersion>
Query the version of SDL_ttf that the program is linked against.
ttfMeasureText(Pointer<TtfFont> font, String? text, int measureWidth, Pointer<Int32> extent, Pointer<Int32> count) int
Calculate how much of a Latin1 string will fit in a given width.
ttfMeasureUnicode(Pointer<TtfFont> font, Pointer<Uint16> text, int measureWidth, Pointer<Int32> extent, Pointer<Int32> count) int
Calculate how much of a UCS-2 string will fit in a given width.
ttfMeasureUtf8(Pointer<TtfFont> font, String? text, int measureWidth, Pointer<Int32> extent, Pointer<Int32> count) int
Calculate how much of a UTF-8 string will fit in a given width.
ttfOpenFont(String? file, int ptsize) Pointer<TtfFont>
Create a font from a file, using a specified point size.
ttfOpenFontDpi(String? file, int ptsize, int hdpi, int vdpi) Pointer<TtfFont>
Create a font from a file, using target resolutions (in DPI).
ttfOpenFontDpirw(Pointer<SdlRWops> src, int freesrc, int ptsize, int hdpi, int vdpi) Pointer<TtfFont>
Opens a font from an SDL_RWops with target resolutions (in DPI).
ttfOpenFontIndex(String? file, int ptsize, int index) Pointer<TtfFont>
Create a font from a file, using a specified face index.
ttfOpenFontIndexDpi(String? file, int ptsize, int index, int hdpi, int vdpi) Pointer<TtfFont>
Create a font from a file, using target resolutions (in DPI).
ttfOpenFontIndexDpirw(Pointer<SdlRWops> src, int freesrc, int ptsize, int index, int hdpi, int vdpi) Pointer<TtfFont>
Opens a font from an SDL_RWops with target resolutions (in DPI).
ttfOpenFontIndexRw(Pointer<SdlRWops> src, int freesrc, int ptsize, int index) Pointer<TtfFont>
Create a font from an SDL_RWops, using a specified face index.
ttfOpenFontRw(Pointer<SdlRWops> src, int freesrc, int ptsize) Pointer<TtfFont>
Create a font from an SDL_RWops, using a specified point size.
ttfQuit() → void
Deinitialize SDL_ttf.
ttfRenderGlyph32Blended(Pointer<TtfFont> font, int ch, SdlColor fg) Pointer<SdlSurface>
Render a single 32-bit glyph at high quality to a new ARGB surface.
ttfRenderGlyph32Lcd(Pointer<TtfFont> font, int ch, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render a single 32-bit glyph at LCD subpixel quality to a new ARGB surface.
ttfRenderGlyph32Shaded(Pointer<TtfFont> font, int ch, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render a single 32-bit glyph at high quality to a new 8-bit surface.
ttfRenderGlyph32Solid(Pointer<TtfFont> font, int ch, SdlColor fg) Pointer<SdlSurface>
Render a single 32-bit glyph at fast quality to a new 8-bit surface.
ttfRenderGlyphBlended(Pointer<TtfFont> font, int ch, SdlColor fg) Pointer<SdlSurface>
Render a single 16-bit glyph at high quality to a new ARGB surface.
ttfRenderGlyphLcd(Pointer<TtfFont> font, int ch, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render a single 16-bit glyph at LCD subpixel quality to a new ARGB surface.
ttfRenderGlyphShaded(Pointer<TtfFont> font, int ch, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render a single 16-bit glyph at high quality to a new 8-bit surface.
ttfRenderGlyphSolid(Pointer<TtfFont> font, int ch, SdlColor fg) Pointer<SdlSurface>
Render a single 16-bit glyph at fast quality to a new 8-bit surface.
ttfRenderTextBlended(Pointer<TtfFont> font, String? text, SdlColor fg) Pointer<SdlSurface>
Render Latin1 text at high quality to a new ARGB surface.
ttfRenderTextBlendedWrapped(Pointer<TtfFont> font, String? text, SdlColor fg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped Latin1 text at high quality to a new ARGB surface.
ttfRenderTextLcd(Pointer<TtfFont> font, String? text, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render Latin1 text at LCD subpixel quality to a new ARGB surface.
ttfRenderTextLcdWrapped(Pointer<TtfFont> font, String? text, SdlColor fg, SdlColor bg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped Latin1 text at LCD subpixel quality to a new ARGB surface.
ttfRenderTextShaded(Pointer<TtfFont> font, String? text, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render Latin1 text at high quality to a new 8-bit surface.
ttfRenderTextShadedWrapped(Pointer<TtfFont> font, String? text, SdlColor fg, SdlColor bg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped Latin1 text at high quality to a new 8-bit surface.
ttfRenderTextSolid(Pointer<TtfFont> font, String? text, SdlColor fg) Pointer<SdlSurface>
Render Latin1 text at fast quality to a new 8-bit surface.
ttfRenderTextSolidWrapped(Pointer<TtfFont> font, String? text, SdlColor fg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped Latin1 text at fast quality to a new 8-bit surface.
ttfRenderUnicodeBlended(Pointer<TtfFont> font, Pointer<Uint16> text, SdlColor fg) Pointer<SdlSurface>
Render UCS-2 text at high quality to a new ARGB surface.
ttfRenderUnicodeBlendedWrapped(Pointer<TtfFont> font, Pointer<Uint16> text, SdlColor fg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped UCS-2 text at high quality to a new ARGB surface.
ttfRenderUnicodeLcd(Pointer<TtfFont> font, Pointer<Uint16> text, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render UCS-2 text at LCD subpixel quality to a new ARGB surface.
ttfRenderUnicodeLcdWrapped(Pointer<TtfFont> font, Pointer<Uint16> text, SdlColor fg, SdlColor bg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped UCS-2 text at LCD subpixel quality to a new ARGB surface.
ttfRenderUnicodeShaded(Pointer<TtfFont> font, Pointer<Uint16> text, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render UCS-2 text at high quality to a new 8-bit surface.
ttfRenderUnicodeShadedWrapped(Pointer<TtfFont> font, Pointer<Uint16> text, SdlColor fg, SdlColor bg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped UCS-2 text at high quality to a new 8-bit surface.
ttfRenderUnicodeSolid(Pointer<TtfFont> font, Pointer<Uint16> text, SdlColor fg) Pointer<SdlSurface>
Render UCS-2 text at fast quality to a new 8-bit surface.
ttfRenderUnicodeSolidWrapped(Pointer<TtfFont> font, Pointer<Uint16> text, SdlColor fg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped UCS-2 text at fast quality to a new 8-bit surface.
ttfRenderUtf8Blended(Pointer<TtfFont> font, String? text, SdlColor fg) Pointer<SdlSurface>
Render UTF-8 text at high quality to a new ARGB surface.
ttfRenderUtf8BlendedWrapped(Pointer<TtfFont> font, String? text, SdlColor fg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped UTF-8 text at high quality to a new ARGB surface.
ttfRenderUtf8Lcd(Pointer<TtfFont> font, String? text, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render UTF-8 text at LCD subpixel quality to a new ARGB surface.
ttfRenderUtf8LcdWrapped(Pointer<TtfFont> font, String? text, SdlColor fg, SdlColor bg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped UTF-8 text at LCD subpixel quality to a new ARGB surface.
ttfRenderUtf8Shaded(Pointer<TtfFont> font, String? text, SdlColor fg, SdlColor bg) Pointer<SdlSurface>
Render UTF-8 text at high quality to a new 8-bit surface.
ttfRenderUtf8ShadedWrapped(Pointer<TtfFont> font, String? text, SdlColor fg, SdlColor bg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped UTF-8 text at high quality to a new 8-bit surface.
ttfRenderUtf8Solid(Pointer<TtfFont> font, String? text, SdlColor fg) Pointer<SdlSurface>
Render UTF-8 text at fast quality to a new 8-bit surface.
ttfRenderUtf8SolidWrapped(Pointer<TtfFont> font, String? text, SdlColor fg, int wrapLength) Pointer<SdlSurface>
Render word-wrapped UTF-8 text at fast quality to a new 8-bit surface.
ttfSetFontDirection(Pointer<TtfFont> font, int direction) int
Set direction to be used for text shaping by a font.
ttfSetFontHinting(Pointer<TtfFont> font, int hinting) → void
Set a font's current hinter setting.
ttfSetFontKerning(Pointer<TtfFont> font, int allowed) → void
Set if kerning is allowed for a font.
ttfSetFontOutline(Pointer<TtfFont> font, int outline) → void
Set a font's current outline.
ttfSetFontScriptName(Pointer<TtfFont> font, String? script) int
Set script to be used for text shaping by a font.
ttfSetFontSdf(Pointer<TtfFont> font, bool onOff) int
Enable Signed Distance Field rendering for a font.
ttfSetFontSize(Pointer<TtfFont> font, int ptsize) int
Set a font's size dynamically.
ttfSetFontSizeDpi(Pointer<TtfFont> font, int ptsize, int hdpi, int vdpi) int
Set font size dynamically with target resolutions (in DPI).
ttfSetFontStyle(Pointer<TtfFont> font, int style) → void
Set a font's current style.
ttfSetFontWrappedAlign(Pointer<TtfFont> font, int align) → void
Set a font's current wrap alignment option.
ttfSizeText(Pointer<TtfFont> font, String? text, Pointer<Int32> w, Pointer<Int32> h) int
Calculate the dimensions of a rendered string of Latin1 text.
ttfSizeUnicode(Pointer<TtfFont> font, Pointer<Uint16> text, Pointer<Int32> w, Pointer<Int32> h) int
Calculate the dimensions of a rendered string of UCS-2 text.
ttfSizeUtf8(Pointer<TtfFont> font, String? text, Pointer<Int32> w, Pointer<Int32> h) int
Calculate the dimensions of a rendered string of UTF-8 text.
ttfWasInit() int
Check if SDL_ttf is initialized.