[ot-font] Don't pre-load cmap table
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 9 Oct 2018 19:12:09 +0000 (15:12 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 9 Oct 2018 19:12:09 +0000 (15:12 -0400)
commit55153553675445e8aad06e363295d399aa79c54f
tree631f9605b2ab94fb1db7b32ad5d146fddabe595b
parentec84460e46fdaa5f8a3c16c8d48dabe2b0c869da
[ot-font] Don't pre-load cmap table

Now that we have get_h_advances() and get_nominal_glyphs() implemented, the
overhead of doing a proper atomic load would be once per run, NOT once per
glyph.  So, no need to pre-load the tables to avoid that overhead.

As such, hb_ot_font_set_funcs() has become really cheap.  Can *finally* make
it be default font functions on all newly created fonts!
src/hb-ot-font.cc