31#include <SDL2/begin_code.h>
42#define SDL_TTF_MAJOR_VERSION 2
43#define SDL_TTF_MINOR_VERSION 0
44#define SDL_TTF_PATCHLEVEL 12
49#define SDL_TTF_VERSION(X) \
51 (X)->major = SDL_TTF_MAJOR_VERSION; \
52 (X)->minor = SDL_TTF_MINOR_VERSION; \
53 (X)->patch = SDL_TTF_PATCHLEVEL; \
57#define TTF_MAJOR_VERSION SDL_TTF_MAJOR_VERSION
58#define TTF_MINOR_VERSION SDL_TTF_MINOR_VERSION
59#define TTF_PATCHLEVEL SDL_TTF_PATCHLEVEL
60#define TTF_VERSION(X) SDL_TTF_VERSION(X)
69#define UNICODE_BOM_NATIVE 0xFEFF
70#define UNICODE_BOM_SWAPPED 0xFFFE
94#define TTF_STYLE_NORMAL 0x00
95#define TTF_STYLE_BOLD 0x01
96#define TTF_STYLE_ITALIC 0x02
97#define TTF_STYLE_UNDERLINE 0x04
98#define TTF_STYLE_STRIKETHROUGH 0x08
105#define TTF_HINTING_NORMAL 0
106#define TTF_HINTING_LIGHT 1
107#define TTF_HINTING_MONO 2
108#define TTF_HINTING_NONE 3
148 int *minx,
int *maxx,
149 int *miny,
int *maxy,
int *advance);
163 const char *text, SDL_Color fg);
165 const char *text, SDL_Color fg);
167 const Uint16 *text, SDL_Color fg);
177 Uint16 ch, SDL_Color fg);
185 const char *text, SDL_Color fg, SDL_Color bg);
187 const char *text, SDL_Color fg, SDL_Color bg);
189 const Uint16 *text, SDL_Color fg, SDL_Color bg);
199 Uint16 ch, SDL_Color fg, SDL_Color bg);
206 const char *text, SDL_Color fg);
208 const char *text, SDL_Color fg);
210 const Uint16 *text, SDL_Color fg);
220 const char *text, SDL_Color fg, Uint32 wrapLength);
222 const char *text, SDL_Color fg, Uint32 wrapLength);
224 const Uint16 *text, SDL_Color fg, Uint32 wrapLength);
233 Uint16 ch, SDL_Color fg);
236#define TTF_RenderText(font, text, fg, bg) \
237 TTF_RenderText_Shaded(font, text, fg, bg)
238#define TTF_RenderUTF8(font, text, fg, bg) \
239 TTF_RenderUTF8_Shaded(font, text, fg, bg)
240#define TTF_RenderUNICODE(font, text, fg, bg) \
241 TTF_RenderUNICODE_Shaded(font, text, fg, bg)
265#define TTF_SetError SDL_SetError
266#define TTF_GetError SDL_GetError
268#define TMP_LOG(str) { const char *cstr = str; svcOutputDebugString(cstr, strlen(cstr)); }
274#include <SDL2/close_code.h>
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 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_GetFontKerningSize(TTF_Font *font, int prev_index, int index)
DECLSPEC int SDLCALL TTF_GetFontStyle(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 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_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 TTF_Font *SDLCALL TTF_OpenFont(const char *file, int ptsize)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color fg)
DECLSPEC int SDLCALL TTF_FontLineSkip(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 int SDLCALL TTF_FontHeight(const TTF_Font *font)
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndex(const char *file, int ptsize, long index)
TTF_Font * TTF_CppWrap_FindValidFont(TTF_Font *font, Uint16 ch)
DECLSPEC void SDLCALL TTF_SetFontKerning(TTF_Font *font, int allowed)
DECLSPEC char *SDLCALL TTF_FontFaceStyleName(const TTF_Font *font)
DECLSPEC int SDLCALL TTF_Init(void)
DECLSPEC void SDLCALL TTF_SetFontOutline(TTF_Font *font, int outline)
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 char *SDLCALL TTF_FontFaceFamilyName(const TTF_Font *font)
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 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 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)
void * TTF_CppWrap_GetCppPtrRef(TTF_Font *font)
struct _TTF_Font TTF_Font
Definition: sdl2_CustomTtf.h:79
DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE(int swapped)
DECLSPEC int SDLCALL TTF_FontAscent(const TTF_Font *font)
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_GetFontHinting(const TTF_Font *font)
void TTF_CppWrap_SetCppPtrRef(TTF_Font *font, void *cpp_ptr_ref)
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 int SDLCALL TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch)
DECLSPEC int SDLCALL TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h)
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
DECLSPEC int SDLCALL TTF_GetFontKerning(const TTF_Font *font)