Repository navigation
Strip TrueType hinting from Khmer OS, Ayar and MPH 2B Damase (v6) - #854
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 4 tasks
jakejackson1
pushed a commit
to GravityPDF/mpdf-core-fonts
that referenced
this pull request
Nov 5, 2026
Copies the 3 fonts dehinted in GravityPDF/mpdf#854 byte for byte from commit 5ff0751c, so each git blob and size matches the fork's ttfonts/. Outlines, metrics and character maps are unchanged; this removes 514,372 bytes (35.5%) from those files. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follows #850. Khmer OS, Ayar and MPH 2B Damase were left hinted because their licences looked unclear on this branch, but the licence files on
gravitypdfallow the change. This strips them, taking 514,372 bytes (35.5%) off those three files, and the files now match #853 byte for byte.KhmerOS.ttf,ayar.ttfanddamase_v.2.ttf.utils/dehint_fonts.pyand drops Khmer OS from its Reserved Font Name list.sizein their three ranges files.Check before merging: the licence reading for Khmer OS below.
ttfonts/KhmerOFL.txtis still in the repo and reserves the name "Khmer".Try it
Rebuilds the fonts and ranges from the script. The tree should stay clean.
Test plan
More info
Licences
LICENSE.txtingravitypdf's package say LGPL 2.1, with a trademark notice.ttfonts/KhmerOFL.txthere is an OFL text dated 2010 reserving the name "Khmer".gravitypdf's package has an OFL 1.1 licence for it with no Reserved Font Name. Its name table says "All rights reserved", and this branch has no licence text for it.gravitypdf's licence file both say public domain.Sizes
KhmerOS.ttfayar.ttfdamase_v.2.ttfVerification
fontTools 4.68.0, poppler
pdftoppm, PHP 8.5.12 on macOS.glyf,loca,headandmaxpuseOTLoffvendor/bin/phpunit --no-coverageComplex-script shaping isn't covered by the pixel comparison, though
GSUBandGPOSare unchanged.mpdf-core-fontsv1.1.0still has these three files hinted, with the old sizes. A site downloading them from there while using this branch's ranges files can log the ranges size warning when one is used as a backup font. The ranges are the same, so the warning would be noise. Matching them needs a newmpdf-core-fontstag, which this PR doesn't do.The existing
CHANGELOG.mdentry from #850 already describes this, so it's unchanged.