Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SubsetProfile to subsetting function to add OS/2 table for browser #112

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

fschutt
Copy link
Contributor

@fschutt fschutt commented Mar 12, 2025

This now generates proper subsetted fonts for use in browsers (in the test case, Klei.otf before is 204 KB, after subsetting it's only 24 KB). Includes a bugfix to stop encoding MacRoman characters into the cmap table, as browsers cannot load them (see #111).

Note: This PR is probably critique-worthy due to API breakage, but it at least works properly and it would enable lots of new opportunities for allsorts, especially as a "web optimization" tool, so it's quite an important PR.

Includes #110 (update the brotli decoder version).

@fschutt fschutt changed the title Add SubsetProfile to subsetting function to configure Add SubsetProfile to subsetting function to add OS/2 table for browser Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant