parallax/jsPDF

ttffont-subset has some bug

Closed this issue · 1 comments

I cut the font with ttffont.js ,but there are some problems with the subset I got. such as some glyphs not render. so i try to analyze the ttf file. And I found:

  1. cmap
    if i cut 3 glyphs,its length should be 4; but i found it has full glyphs info
Image
  1. maxp
    we can see the length is wrong in maxp
Image

And then i try to solve these problem,and i know the problem is that except for the glyph table, all other tables are directly obtained from the table contents of the full set. I don't know how to fix it,
I'd be very grateful if anyone could help me

Image

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.