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

text-anchor, text-justify inconsistent with symbol-placement lines #4822

Closed
daumann opened this issue Jun 11, 2017 · 2 comments
Closed

text-anchor, text-justify inconsistent with symbol-placement lines #4822

daumann opened this issue Jun 11, 2017 · 2 comments
Labels

Comments

@daumann
Copy link
Contributor

daumann commented Jun 11, 2017

Here is a demonstration:
http://jsfiddle.net/wm18a33d/131/

Despite

"text-anchor": "center",
"text-justify": "center",

The text seems to be aligned to the left of the line on some zoom levels.

My guess is that on some zoom levels, the engine is trying to repeat the symbol (text) but the repetition is not yet shown, leaving only the first symbol + the space in-between.
So for example with "test test test" as the text it looks like that:

"test test test"___________|cut|"test test test"

Is there an option to disable repetition of symbols or dynamically setting the font-size so that 1 text symbol fills the whole available space (on the line)? This would fix the problem.

@daumann
Copy link
Contributor Author

daumann commented Jun 13, 2017

@mourner is there an API option to disable repetition of symbols on a line?

@mourner
Copy link
Member

mourner commented Jul 25, 2018

Is there an option to disable repetition of symbols or dynamically setting the font-size so that 1 text symbol fills the whole available space (on the line)? This would fix the problem.

This was fixed by introducing symbol-placement: line-center in #6821.

@mourner mourner closed this as completed Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants