Skip to content

Enable text-line-height, text-letter-spacing paint properties to format options #9079

Open
@tristen

Description

@tristen

Motivation

I want to be able to adjust the line-height and letter-spacing of the smaller text "Saint Petersberg"

Screen Shot 2019-12-05 at 1 23 12 PM

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

[
  "format",
  ["get", "name_ru"],
  {},
  "\n",
  {},
  ["get", "name_en"],
  {
    "font-scale": 0.75,
    "text-line-height": 0.2,
    "text-letter-spacing": 0.1
  }
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions