mapbox / mapbox/mapbox-maps-ios
Using system fonts for SymbolLayer
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
## New Feature
It would be really nice to have the ability to specify the fonts for `SymbolLayer` (and other things) trough `UIFont`.
## Why
Current implementation uses the font family name or the specific font name to create fonts internally. It causes problems when `UIFont.systemFont` is used. In case of `SymbolLayer` it results errors while drawing layer and it being completely removed from the map.
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 by tracing how SymbolLayer currently converts font family or specific font names into internal fonts, then inspect the UIFont-related API surface. Done means callers can specify UIFont values, including UIFont.systemFont, without drawing errors or the SymbolLayer being removed from the map.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100