Commit Graph

5 Commits

Author SHA1 Message Date
Eliot Jones
c30cd1b96d use cid font subroutines where applicable. add ucs 2 cmap support for type 1 fonts
* cid cff fonts have multiple sub-fonts and multiple private dictionaries, in addition to a top level font and private dictionary. this fix uses the specific sub-dictionary when getting local subroutines on a per-glyph basis.
* chinese, japanese or korean fonts can use a ucs-2 encoding cmap for retrieving unicode values.
* add support for the additional glyph list for unicode values in true type fonts. adds nonmarkingreturn mapping to carriage return.
* makes font parsing classes static where there's no reason for them to be per-instance.
2019-12-19 13:33:44 +00:00
Eliot Jones
a967e0898a handle missing width and height correctly for compact font format fonts #75 2019-12-04 14:19:06 +00:00
Eliot Jones
6517a6201a #6 more work on type 2 char string, stuck on a bug 2018-11-19 20:41:52 +00:00
Eliot Jones
2c159f71e8 #6 rename some cff classes, change protection levels and start fixing bugs with charstrings which include hints in routine calls 2018-11-18 16:32:28 +00:00
Eliot Jones
530410c996 #6 improve organisation of cff related classes. add failing font test for cff font file. fix bugs with cff parsing 2018-11-18 13:53:43 +00:00