Skip to content
Myr

rename stbtt_PackSetSkipMissingGlyphs to stbtt_PackSetSkipMissingCodepoints

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent c35d1dd · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:stb_truetype.h+2 added-2 removed
645 unmodified lines
646// If skip != 0, this tells stb_truetype to skip any codepoints for which647// there is no corresponding glyph. If skip=0, which is the default, then648// codepoints without a glyph recived the font's "missing character" glyph,649// typically an empty box by convention.650STBTT_DEF void stbtt_PackSetSkipMissingGlyphs(stbtt_pack_context *spc, int skip);650STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip);651652STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, // same data as above653 int char_index, // character to display654 float *xpos, float *ypos, // pointers to current position in screen pixel space
3175 unmodified lines
3830 if (v_oversample <= STBTT_MAX_OVERSAMPLE)3831 spc->v_oversample = v_oversample;3832}38333834STBTT_DEF void stbtt_PackSetSkipMissingGlyphs(stbtt_pack_context *spc, int skip)3834STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip)3835{3836 spc->skip_empty = skip;3837}3838
1054 unmodified lines