Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review the cmap compaction code #375

Open
bstell opened this issue Dec 16, 2014 · 3 comments
Open

Review the cmap compaction code #375

bstell opened this issue Dec 16, 2014 · 3 comments

Comments

@bstell
Copy link
Contributor

bstell commented Dec 16, 2014

Review exactly what is in the compacted cmap data in the base font.

@bstell
Copy link
Contributor Author

bstell commented Dec 16, 2014

When there is only a format 4:

  • is the cmap compacted?

When there is both a format 4 and 12:

  • are the two merged
  • (for future cmap rebuilding: is format 4 idRangeOffset disabled?)

@bstell
Copy link
Contributor Author

bstell commented Dec 16, 2014

Force and assert idRangeOffset is not used. Then
cmap_compacter:_GOSGenerators:type4 - should be a calculation for format 12

@bstell
Copy link
Contributor Author

bstell commented Feb 11, 2015

perhaps could do a sparse cmap:

  • make a segment per codepoint
  • repeat a single mapping (would compress well)
  • to make fixup faster put in a real value every N (say 256) values
    -- would require the glyph be included; every 256 => 0.4% => 4M -> 16K
    -- would want the header to list which of the chars have glyphs

@bstell bstell closed this as completed Feb 11, 2015
@bstell bstell reopened this Feb 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant