6 Commits

Author SHA1 Message Date
Behdad Esfahbod
b8635fee62 [cffLib.transforms] Handle an attribute error
Fixes https://github.com/fonttools/fonttools/issues/3695
2024-11-21 14:21:20 -07:00
Behdad Esfahbod
4360969baa [cffLib.transforms] Handle case of one FD in remove_unused_subrs 2024-10-23 11:36:26 -06:00
Behdad Esfahbod
39093b9b7e [cffLib] Add optional removeUnusedSubrs arg to remove_hints() 2024-05-25 10:15:00 -06:00
Behdad Esfahbod
aba4f52dea [CFFToCFF2] Remove unused subroutines if necessary
The transforms.py changes are for them to work with fonts
without font.charset. I'm not sure how we didn't catch these
before.
2024-05-23 12:19:39 -06:00
Behdad Esfahbod
d757bfac8a [cffLib] Add remove_hints() and remove_unused_subroutines() methods
From subset.cff.
2024-05-21 13:42:50 -07:00
Behdad Esfahbod
a851d02519 [cffLib] Move desubroutinize code to new cffLib.transforms module 2024-05-21 13:42:50 -07:00