prawnpdf / ttfunk

Font Metrics Parser for Prawn
http://prawnpdf.org
Other
125 stars 75 forks source link

Support the VORG table #57

Closed camertron closed 6 years ago

camertron commented 6 years ago

This pull request is part of a larger effort to bring OTF support to TTFunk. See https://github.com/prawnpdf/ttfunk/issues/53 for details.

Highlights of this PR:

  1. Not much interesting going on with VORG itself - it's a pretty normal table, required for OTF fonts that contain characters written vertically.
  2. Unfortunately none of the existing TTF fonts in the spec/fonts directory had a VORG table, and the smallest one I could find weighs ~15mb. Hopefully that's not a problem since the new OTF font should only be used in tests (i.e. it shouldn't be packaged and distributed with the gem), and should change very infrequently.