Actually add +hb_font_get_nominal_glyphs()

New API:
+hb_font_get_nominal_glyphs()
pull/2034/head
Behdad Esfahbod 5 years ago
parent 03028a5fe5
commit 5a59de2b98
  1. 23
      src/hb-font.cc
  2. 8
      src/hb-font.h

@ -791,6 +791,29 @@ hb_font_get_nominal_glyph (hb_font_t *font,
return font->get_nominal_glyph (unicode, glyph); 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: * hb_font_get_variation_glyph:
* @font: a font. * @font: a font.

@ -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 unicode, hb_codepoint_t variation_selector,
hb_codepoint_t *glyph); 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_EXTERN hb_position_t
hb_font_get_glyph_h_advance (hb_font_t *font, hb_font_get_glyph_h_advance (hb_font_t *font,
hb_codepoint_t glyph); hb_codepoint_t glyph);

Loading…
Cancel
Save