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

Expected --subset='*.ttf' to subset per font-family - with a seperate unicode range calculated per font-family #10

Open
universemaster opened this issue Dec 16, 2021 · 0 comments

Comments

@universemaster
Copy link

universemaster commented Dec 16, 2021

I suggest either a documentation change or functionality change.

I expected the command glyphhanger ./test.html --formats=woff2 --subset='*.ttf' to subset using a calculated unicode range per font family.

However, to get this functionality it appears that I need to run glyphhanger once per font-family like the below which significantly increases my build time:

glyphhanger ./test.html --subset='KaTeX_Main*.ttf' --formats=woff2 --family='KaTeX_Main';
glyphhanger ./test.html --subset='KaTeX_SansSerif*.ttf' --formats=woff2 --family='KaTeX_SansSerif';
glyphhanger ./test.html --subset='KaTeX_Typewriter*.ttf' --formats=woff2 --family='KaTeX_Typewriter';
glyphhanger ./test.html --subset='KaTeX_Math*.ttf' --formats=woff2 --family='KaTeX_Math';
glyphhanger ./test.html --subset='KaTeX_AMS*.ttf' --formats=woff2 --family='KaTeX_AMS';
glyphhanger ./test.html --subset='KaTeX_Caligraphic*.ttf' --formats=woff2 --family='KaTeX_Caligraphic';
glyphhanger ./test.html --subset='KaTeX_Fraktur*.ttf' --formats=woff2 --family='KaTeX_Fraktur';
glyphhanger ./test.html --subset='KaTeX_Script*.ttf' --formats=woff2 --family='KaTeX_Script';
glyphhanger ./test.html --subset='KaTeX_Size1*.ttf' --formats=woff2 --family='KaTeX_Size1';
glyphhanger ./test.html --subset='KaTeX_Size2*.ttf' --formats=woff2 --family='KaTeX_Size2';
glyphhanger ./test.html --subset='KaTeX_Size3*.ttf' --formats=woff2 --family='KaTeX_Size3';
glyphhanger ./test.html --subset='KaTeX_Size4*.ttf' --formats=woff2 --family='KaTeX_Size4'

Have I understood the functionality correctly?

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

No branches or pull requests

1 participant