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

[subset] cmap table dropping #111

Closed
behdad opened this issue Mar 10, 2014 · 0 comments
Closed

[subset] cmap table dropping #111

behdad opened this issue Mar 10, 2014 · 0 comments

Comments

@behdad
Copy link
Member

behdad commented Mar 10, 2014

These are very bogus right now, specially the symbol one:

@_add_method(ttLib.getTableClass('cmap')) 
def prune_pre_subset(self, options): 
  if not options.legacy_cmap: 
    # Drop non-Unicode / non-Symbol cmaps 
    self.tables = [t for t in self.tables 
                   if t.platformID == 3 and t.platEncID in [0, 1, 10]] 
  if not options.symbol_cmap: 
    self.tables = [t for t in self.tables 
                   if t.platformID == 3 and t.platEncID in [1, 10]] 

We should change meaning of legacy to mean non-Unicode, but allow both MS and Unicode cmap platform encodings.

Also, add option for "retain one cmap subtable only".

@behdad behdad closed this as completed in 2007a49 Mar 12, 2014
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