stb_truetype_htcw.h
Defines
- 
__STB_INCLUDE_STB_TRUETYPE_H__
- 
STBTT_DEF
- 
STBTT_POINT_SIZE(x)
- 
stbtt_vertex_type
- 
STBTT_MACSTYLE_DONTCARE
- 
STBTT_MACSTYLE_BOLD
- 
STBTT_MACSTYLE_ITALIC
- 
STBTT_MACSTYLE_UNDERSCORE
- 
STBTT_MACSTYLE_NONE
Typedefs
- 
typedef struct _stbtt_kerningentry stbtt_kerningentry
Enums
- 
enum [anonymous]
- Values: - 
enumerator STBTT_vmove
 - 
enumerator STBTT_vline
 - 
enumerator STBTT_vcurve
 - 
enumerator STBTT_vcubic
 
- 
enumerator STBTT_vmove
- 
enum [anonymous]
- Values: - 
enumerator STBTT_PLATFORM_ID_UNICODE
 - 
enumerator STBTT_PLATFORM_ID_MAC
 - 
enumerator STBTT_PLATFORM_ID_ISO
 - 
enumerator STBTT_PLATFORM_ID_MICROSOFT
 
- 
enumerator STBTT_PLATFORM_ID_UNICODE
- 
enum [anonymous]
- Values: - 
enumerator STBTT_UNICODE_EID_UNICODE_1_0
 - 
enumerator STBTT_UNICODE_EID_UNICODE_1_1
 - 
enumerator STBTT_UNICODE_EID_ISO_10646
 - 
enumerator STBTT_UNICODE_EID_UNICODE_2_0_BMP
 - 
enumerator STBTT_UNICODE_EID_UNICODE_2_0_FULL
 
- 
enumerator STBTT_UNICODE_EID_UNICODE_1_0
- 
enum [anonymous]
- Values: - 
enumerator STBTT_MS_EID_SYMBOL
 - 
enumerator STBTT_MS_EID_UNICODE_BMP
 - 
enumerator STBTT_MS_EID_SHIFTJIS
 - 
enumerator STBTT_MS_EID_UNICODE_FULL
 
- 
enumerator STBTT_MS_EID_SYMBOL
- 
enum [anonymous]
- Values: - 
enumerator STBTT_MAC_EID_ROMAN
 - 
enumerator STBTT_MAC_EID_ARABIC
 - 
enumerator STBTT_MAC_EID_JAPANESE
 - 
enumerator STBTT_MAC_EID_HEBREW
 - 
enumerator STBTT_MAC_EID_CHINESE_TRAD
 - 
enumerator STBTT_MAC_EID_GREEK
 - 
enumerator STBTT_MAC_EID_KOREAN
 - 
enumerator STBTT_MAC_EID_RUSSIAN
 
- 
enumerator STBTT_MAC_EID_ROMAN
- 
enum [anonymous]
- Values: - 
enumerator STBTT_MS_LANG_ENGLISH
 - 
enumerator STBTT_MS_LANG_ITALIAN
 - 
enumerator STBTT_MS_LANG_CHINESE
 - 
enumerator STBTT_MS_LANG_JAPANESE
 - 
enumerator STBTT_MS_LANG_DUTCH
 - 
enumerator STBTT_MS_LANG_KOREAN
 - 
enumerator STBTT_MS_LANG_FRENCH
 - 
enumerator STBTT_MS_LANG_RUSSIAN
 - 
enumerator STBTT_MS_LANG_GERMAN
 - 
enumerator STBTT_MS_LANG_SPANISH
 - 
enumerator STBTT_MS_LANG_HEBREW
 - 
enumerator STBTT_MS_LANG_SWEDISH
 
- 
enumerator STBTT_MS_LANG_ENGLISH
- 
enum [anonymous]
- Values: - 
enumerator STBTT_MAC_LANG_ENGLISH
 - 
enumerator STBTT_MAC_LANG_JAPANESE
 - 
enumerator STBTT_MAC_LANG_ARABIC
 - 
enumerator STBTT_MAC_LANG_KOREAN
 - 
enumerator STBTT_MAC_LANG_DUTCH
 - 
enumerator STBTT_MAC_LANG_RUSSIAN
 - 
enumerator STBTT_MAC_LANG_FRENCH
 - 
enumerator STBTT_MAC_LANG_SPANISH
 - 
enumerator STBTT_MAC_LANG_GERMAN
 - 
enumerator STBTT_MAC_LANG_SWEDISH
 - 
enumerator STBTT_MAC_LANG_HEBREW
 - 
enumerator STBTT_MAC_LANG_CHINESE_SIMPLIFIED
 - 
enumerator STBTT_MAC_LANG_ITALIAN
 - 
enumerator STBTT_MAC_LANG_CHINESE_TRAD
 
- 
enumerator STBTT_MAC_LANG_ENGLISH
Functions
- 
void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule)
- 
int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context)
- 
void stbtt_PackEnd(stbtt_pack_context *spc)
- 
void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample)
- 
void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip)
- 
void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer)
- 
int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)
- 
void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects)
- 
int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)
- 
int stbtt_GetNumberOfFonts(const unsigned char *data)
- 
int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index)
- 
int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset)
- 
int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint)
- 
float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels)
- 
float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels)
- 
void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap)
- 
int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap)
- 
void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1)
- 
void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing)
- 
int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2)
- 
int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1)
- 
void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing)
- 
int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)
- 
int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)
- 
int stbtt_GetKerningTableLength(const stbtt_fontinfo *info)
- 
int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry *table, int table_length)
- 
int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index)
- 
int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices)
- 
int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices)
- 
void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices)
- 
stbtt_uint32 stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl)
- 
int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_uint32 *svgOfs)
- 
int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, stbtt_uint32 *svgOfs)
- 
void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata)
- 
unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff)
- 
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)
- 
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)
- 
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)
- 
void stbtt_MakeCodepointBitmapSubpixelPrefilter(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 oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint)
- 
void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)
- 
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)
- 
unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff)
- 
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)
- 
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)
- 
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)
- 
void stbtt_MakeGlyphBitmapSubpixelPrefilter(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 oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph)
- 
void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)
- 
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)
- 
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)
- 
void stbtt_FreeSDF(unsigned char *bitmap, void *userdata)
- 
unsigned char *stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)
- 
unsigned char *stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)
- 
int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags)
- 
int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, stbtt_uint32 s2offs, int len2)
- 
stbtt_uint32 stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID)
- 
struct stbtt__buf
- 
struct stbtt_bakedchar
- 
struct stbtt_aligned_quad
- 
struct stbtt_packedchar
- 
struct stbtt_pack_range
- 
struct stbtt_pack_context
- 
struct stbtt_fontinfo
- Public Members - 
void *userdata
 - 
unsigned char *data
 - 
int fontstart
 - 
int numGlyphs
 - 
int loca
 - 
int head
 - 
int glyf
 - 
int hhea
 - 
int hmtx
 - 
int kern
 - 
int gpos
 - 
int svg
 - 
int index_map
 - 
int indexToLocFormat
 - 
stbtt__buf cff
 - 
stbtt__buf charstrings
 - 
stbtt__buf gsubrs
 - 
stbtt__buf subrs
 - 
stbtt__buf fontdicts
 - 
stbtt__buf fdselect
 
- 
void *userdata
- 
struct _stbtt_kerningentry
- 
struct stbtt_vertex
- 
struct stbtt__bitmap