mapbox / mapbox/mapbox-maps-ios

Using system fonts for SymbolLayer

Open
#1,383 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.