2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
23
24
25
31#include <SDL2/begin_code.h>
41
42#define SDL_TTF_MAJOR_VERSION 2
43#define SDL_TTF_MINOR_VERSION 0
44#define SDL_TTF_PATCHLEVEL 12
47
48
49#define SDL_TTF_VERSION(X) \
50{
54}
63
64
65
69#define UNICODE_BOM_NATIVE 0xFEFF
70#define UNICODE_BOM_SWAPPED 0xFFFE
73
74
75
85
86
87
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
116
117
121
122
144
145
146
148 int *minx,
int *maxx,
149 int *miny,
int *maxy,
int *advance);
157
158
159
160
161
163 const char *text, SDL_Color fg);
165 const char *text, SDL_Color fg);
167 const Uint16 *text, SDL_Color fg);
170
171
172
173
174
175
177 Uint16 ch, SDL_Color fg);
180
181
182
183
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);
192
193
194
195
196
197
199 Uint16 ch, SDL_Color fg, SDL_Color bg);
202
203
204
206 const char *text, SDL_Color fg);
208 const char *text, SDL_Color fg);
210 const Uint16 *text, SDL_Color fg);
214
215
216
217
218
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);
227
228
229
230
231
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)
#define SDL_TTF_PATCHLEVEL
Definition sdl2_CustomTtf.h:44
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)
#define SDL_TTF_MAJOR_VERSION
Definition sdl2_CustomTtf.h:42
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)
#define SDL_TTF_MINOR_VERSION
Definition sdl2_CustomTtf.h:43
DECLSPEC int SDLCALL TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch)
#define SDL_TTF_VERSION(X)
Definition sdl2_CustomTtf.h:49
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)