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

[QUESTION] how to get subsetting string (whitelist)? #11

Open
the-hotmann opened this issue Dec 30, 2021 · 0 comments
Open

[QUESTION] how to get subsetting string (whitelist)? #11

the-hotmann opened this issue Dec 30, 2021 · 0 comments

Comments

@the-hotmann
Copy link

the-hotmann commented Dec 30, 2021

I know that this command normally should work and just return me the "subsetting string" (here called "whitelist") which is exclusively used by Roboto:

glyphhanger ./public/index.html --string --spider-limit=0 --family=' Roboto' .

something like 0123456789ÄÖÜABCDEFGHIJKLMNOPQRSTUVWXYZäöüabcdefghijklmnopqrstuvwxyz-,.&§ß?!©

But apparently its's not working and exists with the following code:

GlyphHanger Fetch Error: Error: Failed to launch the browser process!

I have not installed any other dependencies as I want this sololy NPM/YARN based and no other extensions like Python based, since I use this in a setup that should be as clean/minimalistic as possible.

Is there a way with glyphhanger (without installing any non NPM dependencies) to get to output the subsetting char-string for ALL html files in a folder (also if they are not linked within each other!) which are JUST used in the end by the specified font?

Weird question maybe, but if you dont understand what I mean please ask, and I will explain again.

My goal is it to create the perfect subsetting char-string for both fonts which I use and to the subset them both with eachs perfect subsetting string. But I would like to stay within NPM

Also I miss the option to search for like:

glyphhanger ./public/**.html --string --family=' Roboto'
which should match ALL "*.html" files in the folder "public" and all subfolders. Since I want to match them all and not having to list them.

Thanks in advance!

@the-hotmann the-hotmann changed the title [QUESTION] able to get subsetting string? [QUESTION] how to get subsetting string (whitelist)? Dec 30, 2021
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