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
[subset] Make it easier to keep evereything #3998
Comments
Would be a bit tricky to hook it up in hb-subset though, to let user override aspects after requesting to keep everything. Though maybe that works? |
It works with hb-subset if one first adds |
So if I keep_everything and then empty out the GID list, would it subset the font such that everything is kept, except glyphs that cannot be reached via cmap, composites or layout? Edit: looking for the equivalent of # The subsetter configuration preserves all OT feature support.
# It will remove unused, unencoded glyphs.
subset_args_expert = [
str(local_filepath),
"--unicodes=*",
"--no-ignore-missing-glyphs",
"--notdef-outline",
"--layout-features=*",
"--name-IDs=*",
"--name-languages=*",
"--glyph-names",
"--no-prune-unicode-ranges",
"--recalc-bounds",
f"--output-file={local_filepath_subset}",
] |
Correct. |
@behdad For the If I just want to turn variable fonts into static fonts, should I use this option right? e.g. hb-subset VF.ttf -o subset.ttf --variations="wght=200" --keep-everything |
Sounds about right, yes. |
Maybe add API on subset-input to keep everything. Basically this code:
harfbuzz/src/hb-subset-input.cc
Lines 485 to 503 in 52110f1
User can call this, then modify the input.
The text was updated successfully, but these errors were encountered: