-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Labels with oblique or italic fonts look incorrect #3782
Comments
I believe this is fixed by #2549, but I haven't tried it. |
This is actually another manifestation of #2130 and will be fixed when that bug is addressed |
@mramato actually, I think this is a separate bug. I have some sample code I've been playing with that pushes back the fringes of billboards into the Z buffer, which does fix 2130 but sadly is not compatible with translucent labels in their current implementation. We should chat offline about that sometime. That said, this issue appears different, as it is not fixed with the same technique. My guess is that the slanted glyphs are actually sticking out past the right-hand edge of their allotment in the texture atlas, and getting cropped. As such I would expect your font-kerning branch to fix this by rendering all the glyphs together. But the low-alpha z-buffered translucency thing is not the problem here. |
@emackey to clarify, I think the Also, while it's good you might have an alternative solution for the transparency issue, I will point out that a surprising number of browser/device combos do not support frag depth (IE11, iOS, many android devices), so anything requiring it is not an ideal solution for something as common as billboard transparency. |
@mramato Yeah, I may have mis-remembered what font-kerning was actually doing, is each glyph still a separate billboard in the atlas? If so this bug stands: I think the individual slanted glyphs are getting cropped, not z-buffered out of existence here. |
For example, there should be no Z buffer issue with a single lone letter:
This has got to be cropping, not Z-buffering. |
Yes, each label is a separate glyph (which is absolutely required for performance/memory), but the code that generates the glyphs was fixed to properly take width into account. That being said, it's totally possible that oblique letters still cause problems so additional changes to the font-keming branch might be needed (in addition to the transparency fix to support proper kerning). |
I've been unable to figure out how to get my changes into a pull request, so they are attached. |
Contacted @GatorScott offline about getting help opening a PR. |
Reported on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/GnWLZbIhKMk
The text was updated successfully, but these errors were encountered: