How to subset CMap subtables other than format 4?

47 views
Skip to first unread message

John Hewson

unread,
Sep 25, 2013, 12:42:55 PM9/25/13
to sfntly...@googlegroups.com
Hi

I'm trying to subset a font with a format 6 CMap table, but RenumberingCMapTableSubsetter can only handle format 4 cmaps.
Sfntly can read the other CMap subtable formats, so why the restriction?

Thanks

John

Stuart Gill

unread,
Sep 27, 2013, 1:35:40 AM9/27/13
to sfntly...@googlegroups.com
John,

There is no reason that format 6 (and others) couldn't be supported other than time. It wasn't a requirement for what we were originally doing and so it wasn't. The change would be to expand the builder for the other format.

If you add a enhancement ticket to the project it would mean that the request wouldn't get lost. Even better would be the addition of such work by those using the project.

Stuart


--
You received this message because you are subscribed to the Google Groups "sfntly-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sfntly-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

John Hewson

unread,
Oct 1, 2013, 1:24:23 PM10/1/13
to sfntly...@googlegroups.com
Great. I'm happy to write some code to do this. Is there a process for contributing beyond just opening an issue with a patch?

Thanks

-- John

Rolf

unread,
Oct 2, 2013, 8:58:12 AM10/2/13
to sfntly...@googlegroups.com
Hi John,

This is maybe outside of the scope of this (because your question is posted to the sfntly group) but have you seen the recent update(s) to fonttools? https://github.com/behdad/fonttools
It has a subsetter which works pretty neat and out of the box. But again, not sure if this works for a project you might be working on and already is using sfntly.

Rolf

Stuart Gill

unread,
Oct 5, 2013, 4:28:56 AM10/5/13
to sfntly...@googlegroups.com
Yes, Behdad's work on fonttools is a good suggestion. The biggest difference is speed (perhaps 50ms compared to 5ms) but fonttools because of it's longer history has more complete coverage of the OpenType spec.
Reply all
Reply to author
Forward
0 new messages