50#define SDL_TTF_MAJOR_VERSION 2
51#define SDL_TTF_MINOR_VERSION 20
52#define SDL_TTF_PATCHLEVEL 2
58#define SDL_TTF_VERSION(X) \
60 (X)->major = SDL_TTF_MAJOR_VERSION; \
61 (X)->minor = SDL_TTF_MINOR_VERSION; \
62 (X)->patch = SDL_TTF_PATCHLEVEL; \
68#define TTF_MAJOR_VERSION SDL_TTF_MAJOR_VERSION
69#define TTF_MINOR_VERSION SDL_TTF_MINOR_VERSION
70#define TTF_PATCHLEVEL SDL_TTF_PATCHLEVEL
71#define TTF_VERSION(X) SDL_TTF_VERSION(X)
73#if SDL_TTF_MAJOR_VERSION < 3 && SDL_MAJOR_VERSION < 3
83#define SDL_TTF_COMPILEDVERSION \
84 SDL_VERSIONNUM(SDL_TTF_MAJOR_VERSION, SDL_TTF_MINOR_VERSION, SDL_TTF_PATCHLEVEL)
90#define SDL_TTF_VERSION_ATLEAST(X, Y, Z) \
91 ((SDL_TTF_MAJOR_VERSION >= X) && \
92 (SDL_TTF_MAJOR_VERSION > X || SDL_TTF_MINOR_VERSION >= Y) && \
93 (SDL_TTF_MAJOR_VERSION > X || SDL_TTF_MINOR_VERSION > Y || SDL_TTF_PATCHLEVEL >= Z))
146#define UNICODE_BOM_NATIVE 0xFEFF
147#define UNICODE_BOM_SWAPPED 0xFFFE
431#define TTF_STYLE_NORMAL 0x00
432#define TTF_STYLE_BOLD 0x01
433#define TTF_STYLE_ITALIC 0x02
434#define TTF_STYLE_UNDERLINE 0x04
435#define TTF_STYLE_STRIKETHROUGH 0x08
507#define TTF_HINTING_NORMAL 0
508#define TTF_HINTING_LIGHT 1
509#define TTF_HINTING_MONO 2
510#define TTF_HINTING_NONE 3
511#define TTF_HINTING_LIGHT_SUBPIXEL 4
558#define TTF_WRAPPED_ALIGN_LEFT 0
559#define TTF_WRAPPED_ALIGN_CENTER 1
560#define TTF_WRAPPED_ALIGN_RIGHT 2
789 int *minx,
int *maxx,
790 int *miny,
int *maxy,
int *advance);
810 int *minx,
int *maxx,
811 int *miny,
int *maxy,
int *advance);
1097 const char *text,
SDL_Color fg, Uint32 wrapLength);
1126 const char *text,
SDL_Color fg, Uint32 wrapLength);
1159 const Uint16 *text,
SDL_Color fg, Uint32 wrapLength);
1623 const char *text,
SDL_Color fg, Uint32 wrapLength);
1652 const char *text,
SDL_Color fg, Uint32 wrapLength);
1685 const Uint16 *text,
SDL_Color fg, Uint32 wrapLength);
2024#define TTF_RenderText(font, text, fg, bg) \
2025 TTF_RenderText_Shaded(font, text, fg, bg)
2026#define TTF_RenderUTF8(font, text, fg, bg) \
2027 TTF_RenderUTF8_Shaded(font, text, fg, bg)
2028#define TTF_RenderUNICODE(font, text, fg, bg) \
2029 TTF_RenderUNICODE_Shaded(font, text, fg, bg)
2197#define TTF_SetError SDL_SetError
2204#define TTF_GetError SDL_GetError
2213 TTF_DIRECTION_LTR = 0,
DECLSPEC void SDLCALL TTF_CloseFont(TTF_Font *font)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Blended(TTF_Font *font, const Uint16 *text, SDL_Color fg)
DECLSPEC int SDLCALL TTF_SetFontSize(TTF_Font *font, int ptsize)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Solid(TTF_Font *font, const Uint16 *text, SDL_Color fg)
DECLSPEC int SDLCALL TTF_FontDescent(const TTF_Font *font)
DECLSPEC int SDLCALL TTF_GetFontOutline(const TTF_Font *font)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Shaded(TTF_Font *font, const Uint16 *text, SDL_Color fg, SDL_Color bg)
DECLSPEC const SDL_version *SDLCALL TTF_Linked_Version(void)
DECLSPEC int TTF_GetFontKerningSizeGlyphs(TTF_Font *font, Uint16 previous_ch, Uint16 ch)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph32_Solid(TTF_Font *font, Uint32 ch, SDL_Color fg)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndexDPIRW(SDL_RWops *src, int freesrc, int ptsize, long index, unsigned int hdpi, unsigned int vdpi)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_LCD_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg, Uint32 wrapLength)
DECLSPEC int SDLCALL TTF_GetFontStyle(const TTF_Font *font)
TTF_Direction
Definition: SDL_ttf.h:2212
DECLSPEC const char *SDLCALL TTF_FontFaceStyleName(const TTF_Font *font)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Blended(TTF_Font *font, Uint16 ch, SDL_Color fg)
DECLSPEC void SDLCALL TTF_SetFontHinting(TTF_Font *font, int hinting)
DECLSPEC const char *SDLCALL TTF_FontFaceFamilyName(const TTF_Font *font)
DECLSPEC int SDLCALL TTF_WasInit(void)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Blended_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph32_Shaded(TTF_Font *font, Uint32 ch, SDL_Color fg, SDL_Color bg)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Blended_Wrapped(TTF_Font *font, const Uint16 *text, SDL_Color fg, Uint32 wrapLength)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Solid(TTF_Font *font, Uint16 ch, SDL_Color fg)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph32_LCD(TTF_Font *font, Uint32 ch, SDL_Color fg, SDL_Color bg)
DECLSPEC int SDLCALL TTF_GlyphIsProvided(TTF_Font *font, Uint16 ch)
DECLSPEC int SDLCALL TTF_MeasureUNICODE(TTF_Font *font, const Uint16 *text, int measure_width, int *extent, int *count)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_LCD(TTF_Font *font, Uint16 ch, SDL_Color fg, SDL_Color bg)
DECLSPEC int SDLCALL TTF_GlyphMetrics32(TTF_Font *font, Uint32 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFont(const char *file, int ptsize)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_LCD(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color fg)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Shaded_Wrapped(TTF_Font *font, const Uint16 *text, SDL_Color fg, SDL_Color bg, Uint32 wrapLength)
DECLSPEC int SDLCALL TTF_FontLineSkip(const TTF_Font *font)
DECLSPEC int SDLCALL TTF_SetFontDirection(TTF_Font *font, TTF_Direction direction)
DECLSPEC SDL_bool TTF_GetFontSDF(const TTF_Font *font)
DECLSPEC int SDLCALL TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended(TTF_Font *font, const char *text, SDL_Color fg)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndexDPI(const char *file, int ptsize, long index, unsigned int hdpi, unsigned int vdpi)
SDL_DEPRECATED DECLSPEC int SDLCALL TTF_SetDirection(int direction)
DECLSPEC int SDLCALL TTF_FontHeight(const TTF_Font *font)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndex(const char *file, int ptsize, long index)
DECLSPEC void SDLCALL TTF_SetFontKerning(TTF_Font *font, int allowed)
DECLSPEC int TTF_GetFontKerningSizeGlyphs32(TTF_Font *font, Uint32 previous_ch, Uint32 ch)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_LCD_Wrapped(TTF_Font *font, const Uint16 *text, SDL_Color fg, SDL_Color bg, Uint32 wrapLength)
SDL_DEPRECATED DECLSPEC int SDLCALL TTF_SetScript(int script)
DECLSPEC int SDLCALL TTF_Init(void)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Solid_Wrapped(TTF_Font *font, const Uint16 *text, SDL_Color fg, Uint32 wrapLength)
DECLSPEC void SDLCALL TTF_SetFontOutline(TTF_Font *font, int outline)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_LCD(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Solid_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Shaded(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg)
DECLSPEC long SDLCALL TTF_FontFaces(const TTF_Font *font)
DECLSPEC int SDLCALL TTF_GlyphIsProvided32(TTF_Font *font, Uint32 ch)
DECLSPEC int SDLCALL TTF_SetFontSizeDPI(TTF_Font *font, int ptsize, unsigned int hdpi, unsigned int vdpi)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Shaded(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Shaded(TTF_Font *font, Uint16 ch, SDL_Color fg, SDL_Color bg)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontDPIRW(SDL_RWops *src, int freesrc, int ptsize, unsigned int hdpi, unsigned int vdpi)
DECLSPEC void SDLCALL TTF_Quit(void)
DECLSPEC void SDLCALL TTF_SetFontStyle(TTF_Font *font, int style)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Solid(TTF_Font *font, const char *text, SDL_Color fg)
DECLSPEC int TTF_SetFontSDF(TTF_Font *font, SDL_bool on_off)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Blended(TTF_Font *font, const char *text, SDL_Color fg)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize)
DECLSPEC void SDLCALL TTF_GetHarfBuzzVersion(int *major, int *minor, int *patch)
struct _TTF_Font TTF_Font
Definition: SDL_ttf.h:164
DECLSPEC int SDLCALL TTF_SetFontScriptName(TTF_Font *font, const char *script)
DECLSPEC int SDLCALL TTF_GetFontWrappedAlign(const TTF_Font *font)
DECLSPEC int SDLCALL TTF_FontAscent(const TTF_Font *font)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_LCD(TTF_Font *font, const Uint16 *text, SDL_Color fg, SDL_Color bg)
DECLSPEC void SDLCALL TTF_SetFontWrappedAlign(TTF_Font *font, int align)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Solid_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
DECLSPEC int SDLCALL TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index)
DECLSPEC int SDLCALL TTF_MeasureText(TTF_Font *font, const char *text, int measure_width, int *extent, int *count)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontDPI(const char *file, int ptsize, unsigned int hdpi, unsigned int vdpi)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Shaded_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg, Uint32 wrapLength)
DECLSPEC int SDLCALL TTF_GetFontHinting(const TTF_Font *font)
DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE(SDL_bool swapped)
DECLSPEC int SDLCALL TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h)
DECLSPEC int SDLCALL TTF_FontFaceIsFixedWidth(const TTF_Font *font)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Shaded_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg, Uint32 wrapLength)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph32_Blended(TTF_Font *font, Uint32 ch, SDL_Color fg)
DECLSPEC int SDLCALL TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h)
DECLSPEC void SDLCALL TTF_GetFreeTypeVersion(int *major, int *minor, int *patch)
DECLSPEC int SDLCALL TTF_MeasureUTF8(TTF_Font *font, const char *text, int measure_width, int *extent, int *count)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
SDL_DEPRECATED DECLSPEC int TTF_GetFontKerningSize(TTF_Font *font, int prev_index, int index)
DECLSPEC int SDLCALL TTF_GetFontKerning(const TTF_Font *font)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_LCD_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg, Uint32 wrapLength)
Definition: SDL_pixels.h:310
Definition: SDL_rwops.h:53
A collection of pixels used in software blitting.
Definition: SDL_surface.h:73
Definition: SDL_version.h:52