-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Getting "Unimplemented type: 7" while decoding PBF generated via node-fontnik #830
Comments
Just realised that most of the other ranges are 1ko pbf, probably empty. The font I downloaded must only contain the latin range or something. Still, would be nice to know which font mapbox used |
Side question, are all the character ranges needed/used? because if i grab the PBF from Mapbox from 0 to 65533, the total file size is about 30Mo, which seem quite a lot! |
Can you provide a link to one of the PBFs that generates the error? |
Hello, Fabien |
|
Yeah, the pbfs are gzip compressed and need to be served with |
Hello,
A week ago, I added an issue "Is it possible to retrieve every font used in mapbox-gl-js for every charset-range?" (#809), @yhahn redirected me to this script https://github.com/mapbox/node-fontnik/blob/master/bin/build-glyphs which worked after a bit of fiddling.
I download the Open Sans variants from http://fr.fonts2u.com/open-sans-bold.police (if you scroll down, you can download the whole thing).
Then I ran those commands:
Which gave me PBFs files for every variant. But when I try to use them with mapbox-gl-js, I get an error "Unimplemented type: 7" here:
When I compare the files:
https://mapbox.s3.amazonaws.com/gl-glyphs-256/Open%20Sans%20Semibold,%20Arial%20Unicode%20MS%20Bold/0-255.pbf
is 83Ko while mine is only 42Ko
Is there something I am doing wrong? Are there different "Open sans" in the wild and I don't have the right one?
Thanks for your help,
Fabien
The text was updated successfully, but these errors were encountered: