Enable text-line-height, text-letter-spacing paint properties to format options
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
## Motivation
I want to be able to adjust the line-height and letter-spacing of the smaller text "Saint Petersberg"

This becomes more important when two font families are used.
## Design Alternatives
- Contend with spacing feeling off
- For line-height, there are less flexible alternatives like
- Using an exaggerated line-height and increase the label max-width
- Adding an additional line break (which limits control over height value)
## Design
```json
[
"format",
["get", "name_ru"],
{},
"\n",
{},
["get", "name_en"],
{
"font-scale": 0.75,
"text-line-height": 0.2,
"text-letter-spacing": 0.1
}
]
```
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 the format expression shown in the issue and how text-line-height and text-letter-spacing are handled as paint properties. Verify that both options are accepted and affect the rendered multiline label, including the example values; done means the formatting works when the two font families are used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100