sdf metadata
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 248
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to include metadata about how the sdfs are rendered.
- [font size used in the sdf](https://github.com/mapbox/node-fontnik/blob/master/src/fontnik/glyphs.cpp#L63) (currently 24)
- distance units per pixel (currently 256 / 8 = 32)
- shift (currently -2 \* 32 = -64)
- [sdf granularity](https://github.com/mapbox/node-fontnik/blob/test-exports/src/freetype-gl/distmap.c#L113)
Not urgent, but it would be nice to not hardcode these in the renderers.
Explanation of how this metadata is used at https://github.com/mapbox/mapbox-gl-style-spec/issues/66#issuecomment-47080500
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked fontnik/glyphs.cpp and distmap.c references, then read the linked style-spec discussion to understand how renderer metadata is expected to be consumed. Identify the SDF rendering values listed in the issue and verify that the completed change exposes them so renderers no longer need to hardcode them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100