Actually add +hb_font_get_nominal_glyphs()

New API:
+hb_font_get_nominal_glyphs()
This commit is contained in:
Behdad Esfahbod 2019-10-28 14:02:47 -07:00
parent 03028a5fe5
commit 5a59de2b98
2 changed files with 31 additions and 0 deletions

View File

@ -791,6 +791,29 @@ hb_font_get_nominal_glyph (hb_font_t *font,
return font->get_nominal_glyph (unicode, glyph);
}
/**
* hb_font_get_nominal_glyphs:
* @font: a font.
*
*
*
* Return value:
*
* Since: REPLACEME
**/
unsigned int
hb_font_get_nominal_glyphs (hb_font_t *font,
unsigned int count,
const hb_codepoint_t *first_unicode,
unsigned int unicode_stride,
hb_codepoint_t *first_glyph,
unsigned int glyph_stride)
{
return font->get_nominal_glyphs (count,
first_unicode, unicode_stride,
first_glyph, glyph_stride);
}
/**
* hb_font_get_variation_glyph:
* @font: a font.

View File

@ -459,6 +459,14 @@ hb_font_get_variation_glyph (hb_font_t *font,
hb_codepoint_t unicode, hb_codepoint_t variation_selector,
hb_codepoint_t *glyph);
HB_EXTERN unsigned int
hb_font_get_nominal_glyphs (hb_font_t *font,
unsigned int count,
const hb_codepoint_t *first_unicode,
unsigned int unicode_stride,
hb_codepoint_t *first_glyph,
unsigned int glyph_stride);
HB_EXTERN hb_position_t
hb_font_get_glyph_h_advance (hb_font_t *font,
hb_codepoint_t glyph);