RetroArch
|
Go to the source code of this file.
Classes | |
struct | stbtt_bakedchar |
struct | stbtt_aligned_quad |
struct | stbtt_packedchar |
struct | stbtt_pack_range |
struct | stbtt_pack_context |
struct | stbtt_fontinfo |
struct | stbtt_vertex |
struct | stbtt__bitmap |
Macros | |
#define | __STB_INCLUDE_STB_TRUETYPE_H__ |
#define | STBTT_DEF extern |
#define | STBTT_POINT_SIZE(x) (-(x)) |
#define | stbtt_vertex_type short |
#define | STBTT_MACSTYLE_DONTCARE 0 |
#define | STBTT_MACSTYLE_BOLD 1 |
#define | STBTT_MACSTYLE_ITALIC 2 |
#define | STBTT_MACSTYLE_UNDERSCORE 4 |
#define | STBTT_MACSTYLE_NONE 8 /* <= not same as 0, this makes us check the bitfield is 0 */ |
Typedefs | |
typedef struct stbtt_pack_context | stbtt_pack_context |
typedef struct stbtt_fontinfo | stbtt_fontinfo |
Functions | |
STBTT_DEF int | stbtt_BakeFontBitmap (const unsigned char *data, int offset, float pixel_height, unsigned char *pixels, int pw, int ph, int first_char, int num_chars, stbtt_bakedchar *chardata) |
STBTT_DEF void | stbtt_GetBakedQuad (stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule) |
STBTT_DEF int | stbtt_PackBegin (stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context) |
STBTT_DEF void | stbtt_PackEnd (stbtt_pack_context *spc) |
STBTT_DEF int | stbtt_PackFontRange (stbtt_pack_context *spc, unsigned char *fontdata, int font_index, float font_size, int first_unicode_char_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) |
STBTT_DEF int | stbtt_PackFontRanges (stbtt_pack_context *spc, unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) |
STBTT_DEF void | stbtt_PackSetOversampling (stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample) |
STBTT_DEF void | stbtt_GetPackedQuad (stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer) |
STBTT_DEF int | stbtt_GetFontOffsetForIndex (const unsigned char *data, int index) |
STBTT_DEF int | stbtt_InitFont (stbtt_fontinfo *info, const unsigned char *data, int offset) |
STBTT_DEF int | stbtt_FindGlyphIndex (const stbtt_fontinfo *info, int unicode_codepoint) |
STBTT_DEF float | stbtt_ScaleForPixelHeight (const stbtt_fontinfo *info, float pixels) |
STBTT_DEF float | stbtt_ScaleForMappingEmToPixels (const stbtt_fontinfo *info, float pixels) |
STBTT_DEF void | stbtt_GetFontVMetrics (const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap) |
STBTT_DEF void | stbtt_GetFontBoundingBox (const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1) |
STBTT_DEF void | stbtt_GetCodepointHMetrics (const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing) |
STBTT_DEF int | stbtt_GetCodepointKernAdvance (const stbtt_fontinfo *info, int ch1, int ch2) |
STBTT_DEF int | stbtt_GetCodepointBox (const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1) |
STBTT_DEF void | stbtt_GetGlyphHMetrics (const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) |
STBTT_DEF int | stbtt_GetGlyphKernAdvance (const stbtt_fontinfo *info, int glyph1, int glyph2) |
STBTT_DEF int | stbtt_GetGlyphBox (const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) |
STBTT_DEF int | stbtt_IsGlyphEmpty (const stbtt_fontinfo *info, int glyph_index) |
STBTT_DEF int | stbtt_GetCodepointShape (const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices) |
STBTT_DEF int | stbtt_GetGlyphShape (const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices) |
STBTT_DEF void | stbtt_FreeShape (const stbtt_fontinfo *info, stbtt_vertex *vertices) |
STBTT_DEF void | stbtt_FreeBitmap (unsigned char *bitmap, void *userdata) |
STBTT_DEF unsigned char * | stbtt_GetCodepointBitmap (const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff) |
STBTT_DEF unsigned char * | stbtt_GetCodepointBitmapSubpixel (const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff) |
STBTT_DEF void | stbtt_MakeCodepointBitmap (const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint) |
STBTT_DEF void | stbtt_MakeCodepointBitmapSubpixel (const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint) |
STBTT_DEF void | stbtt_GetCodepointBitmapBox (const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) |
STBTT_DEF void | stbtt_GetCodepointBitmapBoxSubpixel (const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) |
STBTT_DEF unsigned char * | stbtt_GetGlyphBitmap (const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff) |
STBTT_DEF unsigned char * | stbtt_GetGlyphBitmapSubpixel (const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff) |
STBTT_DEF void | stbtt_MakeGlyphBitmap (const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph) |
STBTT_DEF void | stbtt_MakeGlyphBitmapSubpixel (const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph) |
STBTT_DEF void | stbtt_GetGlyphBitmapBox (const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) |
STBTT_DEF void | stbtt_GetGlyphBitmapBoxSubpixel (const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) |
STBTT_DEF void | stbtt_Rasterize (stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata) |
STBTT_DEF int | stbtt_FindMatchingFont (const unsigned char *fontdata, const char *name, int flags) |
STBTT_DEF int | stbtt_CompareUTF8toUTF16_bigendian (const char *s1, int len1, const char *s2, int len2) |
STBTT_DEF const char * | stbtt_GetFontNameString (const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID) |
#define __STB_INCLUDE_STB_TRUETYPE_H__ |
#define STBTT_DEF extern |
#define STBTT_MACSTYLE_BOLD 1 |
#define STBTT_MACSTYLE_DONTCARE 0 |
#define STBTT_MACSTYLE_ITALIC 2 |
#define STBTT_MACSTYLE_NONE 8 /* <= not same as 0, this makes us check the bitfield is 0 */ |
#define STBTT_MACSTYLE_UNDERSCORE 4 |
#define stbtt_vertex_type short |
typedef struct stbtt_fontinfo stbtt_fontinfo |
typedef struct stbtt_pack_context stbtt_pack_context |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
STBTT_DEF int stbtt_BakeFontBitmap | ( | const unsigned char * | data, |
int | offset, | ||
float | pixel_height, | ||
unsigned char * | pixels, | ||
int | pw, | ||
int | ph, | ||
int | first_char, | ||
int | num_chars, | ||
stbtt_bakedchar * | chardata | ||
) |
STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian | ( | const char * | s1, |
int | len1, | ||
const char * | s2, | ||
int | len2 | ||
) |
STBTT_DEF int stbtt_FindGlyphIndex | ( | const stbtt_fontinfo * | info, |
int | unicode_codepoint | ||
) |
STBTT_DEF int stbtt_FindMatchingFont | ( | const unsigned char * | fontdata, |
const char * | name, | ||
int | flags | ||
) |
STBTT_DEF void stbtt_FreeShape | ( | const stbtt_fontinfo * | info, |
stbtt_vertex * | vertices | ||
) |
STBTT_DEF void stbtt_GetBakedQuad | ( | stbtt_bakedchar * | chardata, |
int | pw, | ||
int | ph, | ||
int | char_index, | ||
float * | xpos, | ||
float * | ypos, | ||
stbtt_aligned_quad * | q, | ||
int | opengl_fillrule | ||
) |
STBTT_DEF unsigned char* stbtt_GetCodepointBitmap | ( | const stbtt_fontinfo * | info, |
float | scale_x, | ||
float | scale_y, | ||
int | codepoint, | ||
int * | width, | ||
int * | height, | ||
int * | xoff, | ||
int * | yoff | ||
) |
STBTT_DEF void stbtt_GetCodepointBitmapBox | ( | const stbtt_fontinfo * | font, |
int | codepoint, | ||
float | scale_x, | ||
float | scale_y, | ||
int * | ix0, | ||
int * | iy0, | ||
int * | ix1, | ||
int * | iy1 | ||
) |
STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel | ( | const stbtt_fontinfo * | font, |
int | codepoint, | ||
float | scale_x, | ||
float | scale_y, | ||
float | shift_x, | ||
float | shift_y, | ||
int * | ix0, | ||
int * | iy0, | ||
int * | ix1, | ||
int * | iy1 | ||
) |
STBTT_DEF unsigned char* stbtt_GetCodepointBitmapSubpixel | ( | const stbtt_fontinfo * | info, |
float | scale_x, | ||
float | scale_y, | ||
float | shift_x, | ||
float | shift_y, | ||
int | codepoint, | ||
int * | width, | ||
int * | height, | ||
int * | xoff, | ||
int * | yoff | ||
) |
STBTT_DEF int stbtt_GetCodepointBox | ( | const stbtt_fontinfo * | info, |
int | codepoint, | ||
int * | x0, | ||
int * | y0, | ||
int * | x1, | ||
int * | y1 | ||
) |
STBTT_DEF void stbtt_GetCodepointHMetrics | ( | const stbtt_fontinfo * | info, |
int | codepoint, | ||
int * | advanceWidth, | ||
int * | leftSideBearing | ||
) |
STBTT_DEF int stbtt_GetCodepointKernAdvance | ( | const stbtt_fontinfo * | info, |
int | ch1, | ||
int | ch2 | ||
) |
STBTT_DEF int stbtt_GetCodepointShape | ( | const stbtt_fontinfo * | info, |
int | unicode_codepoint, | ||
stbtt_vertex ** | vertices | ||
) |
STBTT_DEF void stbtt_GetFontBoundingBox | ( | const stbtt_fontinfo * | info, |
int * | x0, | ||
int * | y0, | ||
int * | x1, | ||
int * | y1 | ||
) |
STBTT_DEF const char* stbtt_GetFontNameString | ( | const stbtt_fontinfo * | font, |
int * | length, | ||
int | platformID, | ||
int | encodingID, | ||
int | languageID, | ||
int | nameID | ||
) |
STBTT_DEF void stbtt_GetFontVMetrics | ( | const stbtt_fontinfo * | info, |
int * | ascent, | ||
int * | descent, | ||
int * | lineGap | ||
) |
STBTT_DEF unsigned char* stbtt_GetGlyphBitmap | ( | const stbtt_fontinfo * | info, |
float | scale_x, | ||
float | scale_y, | ||
int | glyph, | ||
int * | width, | ||
int * | height, | ||
int * | xoff, | ||
int * | yoff | ||
) |
STBTT_DEF void stbtt_GetGlyphBitmapBox | ( | const stbtt_fontinfo * | font, |
int | glyph, | ||
float | scale_x, | ||
float | scale_y, | ||
int * | ix0, | ||
int * | iy0, | ||
int * | ix1, | ||
int * | iy1 | ||
) |
STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel | ( | const stbtt_fontinfo * | font, |
int | glyph, | ||
float | scale_x, | ||
float | scale_y, | ||
float | shift_x, | ||
float | shift_y, | ||
int * | ix0, | ||
int * | iy0, | ||
int * | ix1, | ||
int * | iy1 | ||
) |
STBTT_DEF unsigned char* stbtt_GetGlyphBitmapSubpixel | ( | const stbtt_fontinfo * | info, |
float | scale_x, | ||
float | scale_y, | ||
float | shift_x, | ||
float | shift_y, | ||
int | glyph, | ||
int * | width, | ||
int * | height, | ||
int * | xoff, | ||
int * | yoff | ||
) |
STBTT_DEF int stbtt_GetGlyphBox | ( | const stbtt_fontinfo * | info, |
int | glyph_index, | ||
int * | x0, | ||
int * | y0, | ||
int * | x1, | ||
int * | y1 | ||
) |
STBTT_DEF void stbtt_GetGlyphHMetrics | ( | const stbtt_fontinfo * | info, |
int | glyph_index, | ||
int * | advanceWidth, | ||
int * | leftSideBearing | ||
) |
STBTT_DEF int stbtt_GetGlyphKernAdvance | ( | const stbtt_fontinfo * | info, |
int | glyph1, | ||
int | glyph2 | ||
) |
STBTT_DEF int stbtt_GetGlyphShape | ( | const stbtt_fontinfo * | info, |
int | glyph_index, | ||
stbtt_vertex ** | vertices | ||
) |
STBTT_DEF void stbtt_GetPackedQuad | ( | stbtt_packedchar * | chardata, |
int | pw, | ||
int | ph, | ||
int | char_index, | ||
float * | xpos, | ||
float * | ypos, | ||
stbtt_aligned_quad * | q, | ||
int | align_to_integer | ||
) |
STBTT_DEF int stbtt_InitFont | ( | stbtt_fontinfo * | info, |
const unsigned char * | data, | ||
int | offset | ||
) |
STBTT_DEF int stbtt_IsGlyphEmpty | ( | const stbtt_fontinfo * | info, |
int | glyph_index | ||
) |
STBTT_DEF void stbtt_MakeCodepointBitmap | ( | const stbtt_fontinfo * | info, |
unsigned char * | output, | ||
int | out_w, | ||
int | out_h, | ||
int | out_stride, | ||
float | scale_x, | ||
float | scale_y, | ||
int | codepoint | ||
) |
STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel | ( | const stbtt_fontinfo * | info, |
unsigned char * | output, | ||
int | out_w, | ||
int | out_h, | ||
int | out_stride, | ||
float | scale_x, | ||
float | scale_y, | ||
float | shift_x, | ||
float | shift_y, | ||
int | codepoint | ||
) |
STBTT_DEF void stbtt_MakeGlyphBitmap | ( | const stbtt_fontinfo * | info, |
unsigned char * | output, | ||
int | out_w, | ||
int | out_h, | ||
int | out_stride, | ||
float | scale_x, | ||
float | scale_y, | ||
int | glyph | ||
) |
STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel | ( | const stbtt_fontinfo * | info, |
unsigned char * | output, | ||
int | out_w, | ||
int | out_h, | ||
int | out_stride, | ||
float | scale_x, | ||
float | scale_y, | ||
float | shift_x, | ||
float | shift_y, | ||
int | glyph | ||
) |
STBTT_DEF int stbtt_PackBegin | ( | stbtt_pack_context * | spc, |
unsigned char * | pixels, | ||
int | width, | ||
int | height, | ||
int | stride_in_bytes, | ||
int | padding, | ||
void * | alloc_context | ||
) |
STBTT_DEF void stbtt_PackEnd | ( | stbtt_pack_context * | spc | ) |
STBTT_DEF int stbtt_PackFontRange | ( | stbtt_pack_context * | spc, |
unsigned char * | fontdata, | ||
int | font_index, | ||
float | font_size, | ||
int | first_unicode_char_in_range, | ||
int | num_chars_in_range, | ||
stbtt_packedchar * | chardata_for_range | ||
) |
STBTT_DEF int stbtt_PackFontRanges | ( | stbtt_pack_context * | spc, |
unsigned char * | fontdata, | ||
int | font_index, | ||
stbtt_pack_range * | ranges, | ||
int | num_ranges | ||
) |
STBTT_DEF void stbtt_PackSetOversampling | ( | stbtt_pack_context * | spc, |
unsigned int | h_oversample, | ||
unsigned int | v_oversample | ||
) |
STBTT_DEF void stbtt_Rasterize | ( | stbtt__bitmap * | result, |
float | flatness_in_pixels, | ||
stbtt_vertex * | vertices, | ||
int | num_verts, | ||
float | scale_x, | ||
float | scale_y, | ||
float | shift_x, | ||
float | shift_y, | ||
int | x_off, | ||
int | y_off, | ||
int | invert, | ||
void * | userdata | ||
) |
STBTT_DEF float stbtt_ScaleForMappingEmToPixels | ( | const stbtt_fontinfo * | info, |
float | pixels | ||
) |
STBTT_DEF float stbtt_ScaleForPixelHeight | ( | const stbtt_fontinfo * | info, |
float | pixels | ||
) |