Skip to content

Account for character descenders in text-radial-offset #8560

Open
@tristen

Description

@tristen

Motivation

Like text-offset that accepts number or an array of two numbers that adjusts the x and y coordinates, it would be great if text-radial-offset allowed the same functionality. That would account for the extra distance top positioned labels need for characters with descenders (i.e g, p, q):

Screen Shot 2019-07-26 at 10 09 31 AM

Design Alternatives

Not provide top as a list of possible positions to text-variable-anchor but that's a little limiting.

Design

{
  text-radial-offset: [0.5, 1] // x, y
}

Activity

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

Metadata

Metadata

Labels

cross-platform 📺Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)feature 🍏

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions