Skip to content

Neslib.Sdl3.Ttf

Classes & Records

Name Description
TSdlTtfFont A TTF Font.
TSdlTtfGpuAtlasDrawSequence Draw sequence returned by TSdlTtfText.GetGpuDrawData
TSdlTtfGpuTextEngine A text engine for drawing text with the SDL GPU API.
TSdlTtfProperty Standard SDL TTF properties
TSdlTtfRendererTextEngine A text engine for drawing text on an SDL renderer.
TSdlTtfSubString The representation of a substring within text.
TSdlTtfSurfaceTextEngine A text engine for drawing text on SDL surfaces.
TSdlTtfText A text string to render with a TTF text engine. Note that this object works with 8-bit UTF-8 strings instead of 16-bit Unicode strings.
TSdlTtfTextEngine Abstract base text engine. Use one of the following implementations:

Types

Name Description
TSdlTtfDirection Direction values
TSdlTtfFontStyle Font style flags for TSdlTtfFont
TSdlTtfFontStyles A set of font style flags for TSdlTtfFont
TSdlTtfGpuTextEngineWinding The winding order of the vertices returned by TSdlTtfText.GetGpuDrawData.
TSdlTtfHinting Hinting options for TTF (TrueType Fonts)
TSdlTtfHorizontalAlignment The horizontal alignment used when rendering wrapped text.
TSdlTtfImageType The type of data in a glyph image
TSdlTtfLineCap These values determine how the end of opened sub-paths are rendered in a stroke.
TSdlTtfLineJoin These values determine how two joining lines are rendered in a stroker.
TSdlTtfRenderMode Modes for rendering text and character glyphs.
TSdlTtfSubStringFlag Flags for TSdlTtfSubString
TSdlTtfSubStringFlags S set of flags for TSdlTtfSubString

Routines

Name Description
SdlTtfGetFreeTypeVersion Query the version of the FreeType library in use.
SdlTtfGetGlyphScript Get the script used by a 32-bit codepoint.
SdlTtfGetHarfBuzzVersion Query the version of the HarfBuzz library in use.
SdlTtfGetVersion The version of the linked SDL_ttf library.
SdlTtfInit Initialize SDL_ttf.
SdlTtfQuit Deinitialize SDL_ttf.
SdlTtfStringToTag Convert from a 4 character string to a 32-bit tag.
SdlTtfTagToString Convert from a 32-bit tag to a 4 character string.
SdlTtfWasInit Check if SDL_ttf is initialized.

Constants

Name Description
SDL_TTF_MAJOR_VERSION
SDL_TTF_MICRO_VERSION
SDL_TTF_MINOR_VERSION