Behdad Esfahbod
2225c84a1b
[CFFToCFF2] Allow fdIndex==0
...
Oops.
2024-10-23 11:36:26 -06:00
Behdad Esfahbod
6a812ce925
[CFFToCFF2] Fix for non-FDArray fonts and subroutines
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
33beeaa1a2
[CFFToCFF2] Keep charset during initial round
...
See comments.
2024-05-23 12:19:30 -06:00
Behdad Esfahbod
d77077125b
[CFFToCFF2] Use a custom exception instead of TypeError
2024-05-17 12:57:17 -07:00
Behdad Esfahbod
56cf131088
[CFFToCFF2] Add comment
2024-05-17 11:50:00 -07:00
Behdad Esfahbod
ade8ff627d
[CFFToCFF2] Process charstrings before TopDict
...
Otherwise it fails for charset fonts.
2024-05-17 08:22:41 -07:00
Behdad Esfahbod
d684952b6c
[CFFToCFF2] Upconvert subroutines and charstrings
...
Also drop explicit width. See comments.
2024-05-16 18:04:59 -07:00
Behdad Esfahbod
0a7433f847
[cffLib] Add CFF<->CFF2 convertors that work on otFont
2024-05-16 16:29:22 -07:00
Behdad Esfahbod
1d1b7eb2f2
[cffLib] Add --verbose / --quiet to convertors
...
As well as actually save!
2024-05-16 16:07:03 -07:00
Behdad Esfahbod
ec36fe74d5
[cffLib / varLib] Merge two impls of convertCFFToCFF2
...
Fixes https://github.com/fonttools/fonttools/issues/1835
2024-05-16 15:57:31 -07:00
Behdad Esfahbod
4384eef42e
[cffLib] Comment
2024-05-16 15:33:22 -07:00
Behdad Esfahbod
39ec4e6c0c
[cffLib] Add CFFToCFF2 and CFF2ToCFF cmdline and module
...
The CFF2ToCFF module is rather solid, at least IMO.
This takes convertCFFToCFF2 from cffLib. Apparently there's a more
complete one in varLib.cff:
https://github.com/fonttools/fonttools/issues/1835
Should merge the two and finish them.
2024-05-16 10:47:24 -07:00