Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smarter text wrapping #173

Merged
merged 1 commit into from
Mar 10, 2019
Merged

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented Mar 10, 2019

  • Try to avoid lines with less than 30 % of the max width
  • Try to equally distribute filled space across lines
  • Clear measure cache when better font is available (ES modules only)

Improvement examples:

Freiburg im
Breisgau

instead of

Freiburg
im
Breisgau

or

United States
of America

instead of

United States of
America

* Try to avoid lines with less than 30 % of the max width
* Try to equally distribute words across lines
* Clear measure cache when better font is available (ES modules only)
@ahocevar ahocevar merged commit b89ddf3 into openlayers:master Mar 10, 2019
@ahocevar ahocevar deleted the better-wrapping branch March 10, 2019 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant