Add get_nominal_glyph() and get_variation_glyph() instead of get_glyph()
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 24 Feb 2016 10:05:23 +0000 (19:05 +0900)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 24 Feb 2016 10:05:23 +0000 (19:05 +0900)
commit8b5bc141cd3a6bfcea3c91a882a630426876ceb3
tree9d1b543382a424a7c7d2a8393d16f42d0b467a23
parentb30a971bf792b9c683c345e1be25c5a5869a113c
Add get_nominal_glyph() and get_variation_glyph() instead of get_glyph()

New API:
- hb_font_get_nominal_glyph_func_t
- hb_font_get_variation_glyph_func_t
- hb_font_funcs_set_nominal_glyph_func()
- hb_font_funcs_set_variation_glyph_func()
- hb_font_get_nominal_glyph()
- hb_font_get_variation_glyph()

Deprecated API:
- hb_font_get_glyph_func_t
- hb_font_funcs_set_glyph_func()

Clients that implement their own font-funcs are encouraged to replace
their get_glyph() implementation with a get_nominal_glyph() and
get_variation_glyph() pair.  The variation version can assume that
variation_selector argument is not zero.
13 files changed:
src/hb-deprecated.h
src/hb-fallback-shape.cc
src/hb-font-private.hh
src/hb-font.cc
src/hb-font.h
src/hb-ft.cc
src/hb-ot-font.cc
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-myanmar.cc
src/hb-ot-shape-complex-use.cc
src/hb-ot-shape-fallback.cc
src/hb-ot-shape-normalize.cc
src/hb-ot-shape.cc