mapbox / mapbox/tiny-sdf

Expose the SDF function separately so that it can be used without canvassing text

Open
#52 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
673
Forks
66
PR merge metrics
No merged PRs in 30d

Description

There are precious few SDF libraries out there, and it would be quite valuable if there was a way to import just the SDF parts, for when you already _have_ a pixel matrix as uint8array, and you don't need to draw anything to a canvas, you just need the SDF for that pixel matrix.

Contributor guide

Open the contributing guide

Research direction

Start by locating the repository's SDF generation and canvas/text entry points. Determine how the SDF logic can accept an existing uint8array without canvas work, then verify that the SDF functionality is separately importable and still supports the existing font-generation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.