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

expose metadata in protobuf #97

Closed
wants to merge 5 commits into from
Closed

expose metadata in protobuf #97

wants to merge 5 commits into from

Conversation

mikemorris
Copy link
Contributor

Rewrites the proto spec to include both font face metadata and SDF generation metadata, and drops the "fontstack" concept from the proto spec. Although a font file can contain multiple faces, I'm undecided on whether the proto spec should still permit multiple faces.

Refs #51, mapbox/mapbox-gl-js#154, #80 (comment)

@ansis I still can't quite figure out where the magic sdfPx value in mapbox-gl-js is originating from, please tag a commit on here if you can find it in the SDF generation code. Is sdfPx used to calculate distance units per pixel and shift as mentioned in #51 or are those other constants I can't find?

@ansis
Copy link
Contributor

ansis commented Jul 10, 2015

I think sdfPx=8 means that if you are 1px from the edge in the sdf then the distance value for that point is 8

A distance of 20 is 2.5 pixels from the edge

@tristen
Copy link
Member

tristen commented Nov 22, 2019

Closing this! progress continues in #160

@tristen tristen closed this Nov 22, 2019
@tristen tristen deleted the metadata branch November 22, 2019 16:30
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.

3 participants