Modules§
- constants
- Generated constants
Structs§
- TTF_
Direction - Direction flags
- TTF_
Font - TTF_
GPUAtlas Draw Sequence - Draw sequence returned by TTF_GetGPUTextDrawData
- TTF_
GPUText Engine Winding - The winding order of the vertices returned by TTF_GetGPUTextDrawData
- TTF_
Hinting Flags - Hinting flags for TTF (TrueType Fonts)
- TTF_
Horizontal Alignment - The horizontal alignment used when rendering wrapped text.
- TTF_
Image Type - The type of data in a glyph image
- TTF_
SubString - The representation of a substring within text.
- TTF_
Text - Text created with TTF_CreateText()
- TTF_
Text Data - TTF_
Text Engine
Constants§
- SDL_
TTF_ MAJOR_ VERSION - SDL_
TTF_ MICRO_ VERSION - SDL_
TTF_ MINOR_ VERSION - TTF_
FONT_ WEIGHT_ BLACK - TTF_
FONT_ WEIGHT_ BOLD - TTF_
FONT_ WEIGHT_ EXTRA_ BLACK - TTF_
FONT_ WEIGHT_ EXTRA_ BOLD - TTF_
FONT_ WEIGHT_ EXTRA_ LIGHT - TTF_
FONT_ WEIGHT_ LIGHT - TTF_
FONT_ WEIGHT_ MEDIUM - TTF_
FONT_ WEIGHT_ NORMAL - TTF_
FONT_ WEIGHT_ SEMI_ BOLD - TTF_
FONT_ WEIGHT_ THIN - TTF_
PROP_ FONT_ CREATE_ EXISTING_ FONT_ POINTER - TTF_
PROP_ FONT_ CREATE_ FACE_ NUMBER - TTF_
PROP_ FONT_ CREATE_ FILENAME_ STRING - TTF_
PROP_ FONT_ CREATE_ HORIZONTAL_ DPI_ NUMBER - TTF_
PROP_ FONT_ CREATE_ IOSTREAM_ AUTOCLOSE_ BOOLEAN - TTF_
PROP_ FONT_ CREATE_ IOSTREAM_ OFFSET_ NUMBER - TTF_
PROP_ FONT_ CREATE_ IOSTREAM_ POINTER - TTF_
PROP_ FONT_ CREATE_ SIZE_ FLOAT - TTF_
PROP_ FONT_ CREATE_ VERTICAL_ DPI_ NUMBER - TTF_
PROP_ FONT_ OUTLINE_ LINE_ CAP_ NUMBER - TTF_
PROP_ FONT_ OUTLINE_ LINE_ JOIN_ NUMBER - TTF_
PROP_ FONT_ OUTLINE_ MITER_ LIMIT_ NUMBER - TTF_
PROP_ GPU_ TEXT_ ENGINE_ ATLAS_ TEXTURE_ SIZE_ NUMBER - TTF_
PROP_ GPU_ TEXT_ ENGINE_ DEVICE_ POINTER - TTF_
PROP_ RENDERER_ TEXT_ ENGINE_ ATLAS_ TEXTURE_ SIZE_ NUMBER - TTF_
PROP_ RENDERER_ TEXT_ ENGINE_ RENDERER_ POINTER - TTF_
STYLE_ BOLD - TTF_
STYLE_ ITALIC - TTF_
STYLE_ NORMAL - TTF_
STYLE_ STRIKETHROUGH - TTF_
STYLE_ UNDERLINE - TTF_
SUBSTRING_ DIRECTION_ MASK - TTF_
SUBSTRING_ LINE_ END - TTF_
SUBSTRING_ LINE_ START - TTF_
SUBSTRING_ TEXT_ END - TTF_
SUBSTRING_ TEXT_ START
Functions§
- TTF_
AddFallback ⚠Font - Add a fallback font.
- TTF_
Append ⚠Text String - Append UTF-8 text to a text object.
- TTF_
Clear ⚠Fallback Fonts - Remove all fallback fonts.
- TTF_
Close ⚠Font - Dispose of a previously-created font.
- TTF_
Copy ⚠Font - Create a copy of an existing font.
- TTF_
CreateGPU ⚠Text Engine - Create a text engine for drawing text with the SDL GPU API.
- TTF_
CreateGPU ⚠Text Engine With Properties - Create a text engine for drawing text with the SDL GPU API, with the specified properties.
- TTF_
Create ⚠Renderer Text Engine - Create a text engine for drawing text on an SDL renderer.
- TTF_
Create ⚠Renderer Text Engine With Properties - Create a text engine for drawing text on an SDL renderer, with the specified properties.
- TTF_
Create ⚠Surface Text Engine - Create a text engine for drawing text on SDL surfaces.
- TTF_
Create ⚠Text - Create a text object from UTF-8 text and a text engine.
- TTF_
Delete ⚠Text String - Delete UTF-8 text from a text object.
- TTF_
DestroyGPU ⚠Text Engine - Destroy a text engine created for drawing text with the SDL GPU API.
- TTF_
Destroy ⚠Renderer Text Engine - Destroy a text engine created for drawing text on an SDL renderer.
- TTF_
Destroy ⚠Surface Text Engine - Destroy a text engine created for drawing text on SDL surfaces.
- TTF_
Destroy ⚠Text - Destroy a text object created by a text engine.
- TTF_
Draw ⚠Renderer Text - Draw text to an SDL renderer.
- TTF_
Draw ⚠Surface Text - Draw text to an SDL surface.
- TTF_
Font ⚠HasGlyph - Check whether a glyph is provided by the font for a UNICODE codepoint.
- TTF_
Font ⚠IsFixed Width - Query whether a font is fixed-width.
- TTF_
Font ⚠IsScalable - Query whether a font is scalable or not.
- TTF_
GetFont ⚠Ascent - Query the offset from the baseline to the top of a font.
- TTF_
GetFont ⚠Char Spacing - Get the additional character spacing in pixels to be applied between any two rendered characters.
- TTF_
GetFontDPI ⚠ - Get font target resolutions, in dots per inch.
- TTF_
GetFont ⚠Descent - Query the offset from the baseline to the bottom of a font.
- TTF_
GetFont ⚠Direction - Get the direction to be used for text shaping by a font.
- TTF_
GetFont ⚠Family Name - Query a font’s family name.
- TTF_
GetFont ⚠Generation - Get the font generation.
- TTF_
GetFont ⚠Height - Query the total height of a font.
- TTF_
GetFont ⚠Hinting - Query a font’s current FreeType hinter setting.
- TTF_
GetFont ⚠Kerning - Query whether or not kerning is enabled for a font.
- TTF_
GetFont ⚠Line Skip - Query the spacing between lines of text for a font.
- TTF_
GetFont ⚠Outline - Query a font’s current outline.
- TTF_
GetFont ⚠Properties - Get the properties associated with a font.
- TTF_
GetFontSDF ⚠ - Query whether Signed Distance Field rendering is enabled for a font.
- TTF_
GetFont ⚠Script - Get the script used for text shaping a font.
- TTF_
GetFont ⚠Size - Get the size of a font.
- TTF_
GetFont ⚠Style - Query a font’s current style.
- TTF_
GetFont ⚠Style Name - Query a font’s style name.
- TTF_
GetFont ⚠Weight - Query a font’s weight, in terms of the lightness/heaviness of the strokes.
- TTF_
GetFont ⚠Wrap Alignment - Query a font’s current wrap alignment option.
- TTF_
GetFree ⚠Type Version - Query the version of the FreeType library in use.
- TTF_
GetGPU ⚠Text Draw Data - Get the geometry data needed for drawing the text.
- TTF_
GetGPU ⚠Text Engine Winding - Get the winding order of the vertices returned by TTF_GetGPUTextDrawData for a particular GPU text engine
- TTF_
GetGlyph ⚠Image - Get the pixel image for a UNICODE codepoint.
- TTF_
GetGlyph ⚠Image ForIndex - Get the pixel image for a character index.
- TTF_
GetGlyph ⚠Kerning - Query the kerning size between the glyphs of two UNICODE codepoints.
- TTF_
GetGlyph ⚠Metrics - Query the metrics (dimensions) of a font’s glyph for a UNICODE codepoint.
- TTF_
GetGlyph ⚠Script - Get the script used by a 32-bit codepoint.
- TTF_
GetHarf ⚠Buzz Version - Query the version of the HarfBuzz library in use.
- TTF_
GetNext ⚠Text SubString - Get the next substring in a text object
- TTF_
GetNum ⚠Font Faces - Query the number of faces of a font.
- TTF_
GetPrevious ⚠Text SubString - Get the previous substring in a text object
- TTF_
GetString ⚠Size - Calculate the dimensions of a rendered string of UTF-8 text.
- TTF_
GetString ⚠Size Wrapped - Calculate the dimensions of a rendered string of UTF-8 text.
- TTF_
GetText ⚠Color - Get the color of a text object.
- TTF_
GetText ⚠Color Float - Get the color of a text object.
- TTF_
GetText ⚠Direction - Get the direction to be used for text shaping a text object.
- TTF_
GetText ⚠Engine - Get the text engine used by a text object.
- TTF_
GetText ⚠Font - Get the font used by a text object.
- TTF_
GetText ⚠Position - Get the position of a text object.
- TTF_
GetText ⚠Properties - Get the properties associated with a text object.
- TTF_
GetText ⚠Script - Get the script used for text shaping a text object.
- TTF_
GetText ⚠Size - Get the size of a text object.
- TTF_
GetText ⚠SubString - Get the substring of a text object that surrounds a text offset.
- TTF_
GetText ⚠SubString ForLine - Get the substring of a text object that contains the given line.
- TTF_
GetText ⚠SubString ForPoint - Get the portion of a text string that is closest to a point.
- TTF_
GetText ⚠SubStrings ForRange - Get the substrings of a text object that contain a range of text.
- TTF_
GetText ⚠Wrap Width - Get whether wrapping is enabled on a text object.
- TTF_
Init ⚠ - Initialize SDL_ttf.
- TTF_
Insert ⚠Text String - Insert UTF-8 text into a text object.
- TTF_
Measure ⚠String - Calculate how much of a UTF-8 string will fit in a given width.
- TTF_
Open ⚠Font - Create a font from a file, using a specified point size.
- TTF_
Open ⚠FontIO - Create a font from an SDL_IOStream, using a specified point size.
- TTF_
Open ⚠Font With Properties - Create a font with the specified properties.
- TTF_
Quit ⚠ - Deinitialize SDL_ttf.
- TTF_
Remove ⚠Fallback Font - Remove a fallback font.
- TTF_
Render ⚠Glyph_ Blended - Render a single UNICODE codepoint at high quality to a new ARGB surface.
- TTF_
Render ⚠Glyph_ LCD - Render a single UNICODE codepoint at LCD subpixel quality to a new ARGB surface.
- TTF_
Render ⚠Glyph_ Shaded - Render a single UNICODE codepoint at high quality to a new 8-bit surface.
- TTF_
Render ⚠Glyph_ Solid - Render a single 32-bit glyph at fast quality to a new 8-bit surface.
- TTF_
Render ⚠Text_ Blended - Render UTF-8 text at high quality to a new ARGB surface.
- TTF_
Render ⚠Text_ Blended_ Wrapped - Render word-wrapped UTF-8 text at high quality to a new ARGB surface.
- TTF_
Render ⚠Text_ LCD - Render UTF-8 text at LCD subpixel quality to a new ARGB surface.
- TTF_
Render ⚠Text_ LCD_ Wrapped - Render word-wrapped UTF-8 text at LCD subpixel quality to a new ARGB surface.
- TTF_
Render ⚠Text_ Shaded - Render UTF-8 text at high quality to a new 8-bit surface.
- TTF_
Render ⚠Text_ Shaded_ Wrapped - Render word-wrapped UTF-8 text at high quality to a new 8-bit surface.
- TTF_
Render ⚠Text_ Solid - Render UTF-8 text at fast quality to a new 8-bit surface.
- TTF_
Render ⚠Text_ Solid_ Wrapped - Render word-wrapped UTF-8 text at fast quality to a new 8-bit surface.
- TTF_
SetFont ⚠Char Spacing - Set additional space in pixels to be applied between any two rendered characters.
- TTF_
SetFont ⚠Direction - Set the direction to be used for text shaping by a font.
- TTF_
SetFont ⚠Hinting - Set a font’s current hinter setting.
- TTF_
SetFont ⚠Kerning - Set if kerning is enabled for a font.
- TTF_
SetFont ⚠Language - Set language to be used for text shaping by a font.
- TTF_
SetFont ⚠Line Skip - Set the spacing between lines of text for a font.
- TTF_
SetFont ⚠Outline - Set a font’s current outline.
- TTF_
SetFontSDF ⚠ - Enable Signed Distance Field rendering for a font.
- TTF_
SetFont ⚠Script - Set the script to be used for text shaping by a font.
- TTF_
SetFont ⚠Size - Set a font’s size dynamically.
- TTF_
SetFont ⚠SizeDPI - Set font size dynamically with target resolutions, in dots per inch.
- TTF_
SetFont ⚠Style - Set a font’s current style.
- TTF_
SetFont ⚠Wrap Alignment - Set a font’s current wrap alignment option.
- TTF_
SetGPU ⚠Text Engine Winding - Sets the winding order of the vertices returned by TTF_GetGPUTextDrawData for a particular GPU text engine.
- TTF_
SetText ⚠Color - Set the color of a text object.
- TTF_
SetText ⚠Color Float - Set the color of a text object.
- TTF_
SetText ⚠Direction - Set the direction to be used for text shaping a text object.
- TTF_
SetText ⚠Engine - Set the text engine used by a text object.
- TTF_
SetText ⚠Font - Set the font used by a text object.
- TTF_
SetText ⚠Position - Set the position of a text object.
- TTF_
SetText ⚠Script - Set the script to be used for text shaping a text object.
- TTF_
SetText ⚠String - Set the UTF-8 text used by a text object.
- TTF_
SetText ⚠Wrap Whitespace Visible - Set whether whitespace should be visible when wrapping a text object.
- TTF_
SetText ⚠Wrap Width - Set whether wrapping is enabled on a text object.
- TTF_
String ⚠ToTag - Convert from a 4 character string to a 32-bit tag.
- TTF_
TagTo ⚠String - Convert from a 32-bit tag to a 4 character string.
- TTF_
Text ⚠Wrap Whitespace Visible - Return whether whitespace is shown when wrapping a text object.
- TTF_
Update ⚠Text - Update the layout of a text object.
- TTF_
Version ⚠ - This function gets the version of the dynamically linked SDL_ttf library.
- TTF_
WasInit ⚠ - Check if SDL_ttf is initialized.
Type Aliases§
- TTF_
Font Style Flags - Font style flags for TTF_Font
- TTF_
SubString Flags - Flags for TTF_SubString