Users may sometimes want to typeset glyphs vertically (especially CJK), and that's what vhea and vmtx are for.
This PR adds 3 functions shown below to support vertical layouts.
STBTT_DEF void stbtt_GetFontHMetrics(const stbtt_fontinfo *info, int *vertTypoAscender, int *vertTypoDescender, int *vertTypoLineGap);
STBTT_DEF void stbtt_GetGlyphVMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceHeight, int *topSideBearing);
STBTT_DEF void stbtt_GetCodepointVMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceHeight, int *topSideBearing);
Users may sometimes want to typeset glyphs vertically (especially CJK), and that's what
vhea
andvmtx
are for.This PR adds 3 functions shown below to support vertical layouts.