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

keep-upright for single-glyph vertical text may be broken #5544

Closed
ChrisLoer opened this issue Oct 27, 2017 · 2 comments
Closed

keep-upright for single-glyph vertical text may be broken #5544

ChrisLoer opened this issue Oct 27, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@ChrisLoer
Copy link
Contributor

ChrisLoer commented Oct 27, 2017

I haven't tested this yet, but while porting #5150 to native, I noticed what looks like a vestigial use of symbol.vertical at

if (symbol.vertical ? b.y > a.y : b.x < a.x) {
.

I'm pretty sure vertical isn't a member of the placedSymbols anymore. We should be using symbol.writingMode == WritingMode.vertical. I believe what will happen is that single-glyph CJK labels will be upside down over a 90 degree range.

Needs a regression test.

/cc @ansis @1ec5

@ChrisLoer ChrisLoer self-assigned this Oct 27, 2017
@1ec5
Copy link
Contributor

1ec5 commented Oct 30, 2017

I believe what will happen is that single-glyph CJK labels will be upside down over a 90 degree range.

I’m not seeing any issues with this way tagged name=桥 when rendered in the Mapbox Streets style.

@ChrisLoer ChrisLoer added this to the v0.41.1 milestone Oct 30, 2017
@ChrisLoer
Copy link
Contributor Author

Thanks for that example, @1ec5. It looks like the keepUpright problem is being hidden by vertical text just being disabled entirely for single glyph labels.

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

2 participants