mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-13 22:12:12 +00:00
* krilla: TrueType subsets keep the font's OS/2 table (embedding permissions) The subsetter writes only the tables it subsets, so a FontFile2 program had no OS/2 table and the font's embedding permissions (OS/2.fsType) never reached the PDF: a Preview & Print or Restricted font looked unrestricted to anything reading the file later (designcraft#1781). Patch 18 adds the source font's OS/2 table, byte for byte, to a TrueType subset that lacks one, rewriting the table directory with its checksums and head.checkSumAdjustment. CFF programs are still embedded bare. Ledger, patch file and SOURCE.json updated; craft-pdf's new font_tables test checks the table, its fsType and the font's checksums. * krilla: the OS/2 test checks the embedded program is a subset Its sfnt and re-read checks also pass for the source font embedded whole. A subset has fewer glyphs than the fixture's 11, and a shorter glyf. --------- Co-authored-by: Hamza <mail.hamzanaveed@gmail.com>