Skip to content

Increase speed of reading OpenType GSUB table by a factor of four.

Tavmjong Bah requested to merge Tavmjong/inkscape:gsub_table2 into master

Half the increase comes from not creating a new hb_font object (Pango provides access to an hb_font object). Half the increase comes from using 'break' rather than 'continue' when finding characters that match glyphs. Also avoid creating a new hb_font object when reading the SVG glyph table.

We must still create the hb_font for Pango < 1.44 as that is when pango_font_get_hb_font() was added.

This replaces !2629 (closed). (Which I messed up.)

Merge request reports