khaledhosny / harf

A HarfBuzz-based font loader and shaper for HarfTeX
GNU General Public License v2.0
10 stars 1 forks source link

Calculate glyph bounding box after shaping #4

Closed khaledhosny closed 5 years ago

khaledhosny commented 5 years ago

We currently calculate glyph bounding box for all glyphs in the font at font loading time, but this seems to be a waste; we should do it instead after shaping and for glyphs that are actually used in the document.

khaledhosny commented 5 years ago

Does not seem to work. Fonts can not be changed after loading, and glyph nodes’ width, height and depth are read only and changing them has no effect.