|
|
|
@ -562,7 +562,7 @@ STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc); |
|
|
|
|
|
|
|
|
|
#define STBTT_POINT_SIZE(x) (-(x)) |
|
|
|
|
|
|
|
|
|
STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, unsigned char *fontdata, int font_index, float font_size, |
|
|
|
|
STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const 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); |
|
|
|
|
// Creates character bitmaps from the font_index'th font found in fontdata (use
|
|
|
|
|
// font_index=0 if you don't know what that is). It creates num_chars_in_range
|
|
|
|
@ -587,7 +587,7 @@ typedef struct |
|
|
|
|
unsigned char h_oversample, v_oversample; // don't set these, they're used internally
|
|
|
|
|
} stbtt_pack_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 int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges); |
|
|
|
|
// Creates character bitmaps from multiple ranges of characters stored in
|
|
|
|
|
// ranges. This will usually create a better-packed bitmap than multiple
|
|
|
|
|
// calls to stbtt_PackFontRange. Note that you can call this multiple
|
|
|
|
@ -3787,7 +3787,7 @@ STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect |
|
|
|
|
stbrp_pack_rects((stbrp_context *) spc->pack_info, rects, num_rects); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) |
|
|
|
|
STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) |
|
|
|
|
{ |
|
|
|
|
stbtt_fontinfo info; |
|
|
|
|
int i,j,n, return_value = 1; |
|
|
|
@ -3823,7 +3823,7 @@ STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, unsigned char *fontd |
|
|
|
|
return return_value; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, unsigned char *fontdata, int font_index, float font_size, |
|
|
|
|
STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, |
|
|
|
|
int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) |
|
|
|
|
{ |
|
|
|
|
stbtt_pack_range range; |
|
|
|
|