Closed ahlwong closed 9 years ago
@Dhilan007 Could you please take a look?
Fixed!
It have occurred for me on 3.6. It also happens in Cocos Studio (2.3.2 Beta).
What is more it only occures when outline size is >1.
@mirth Please try fix it by apply this pr:https://github.com/cocos2d/cocos2d-x/pull/11720
Unfortunately it didn't help.
Resolved by increasing the label node content size.
EDIT: After looking into the problem further I was able to replicate the issue on iOS too. The issue is related to TTFConfig fonts vs SystemFonts. I was loading fonts by the font name on iOS and by their resource path on Android. When I switched to loading Fonts by their resource path on iOS, I encountered the same issue.
Either way, the issue is that when you enableOutline on a TTFConfig font, the text is rendered in a higher position. It should render in-place.
ORIGINAL: On Android when you enableOutline on a CCLabel it causes the text to shift positions up. (Tested on multiple Android devices)
It looks as though the text is positioned so that the anchor is BOTTOM even though it reads and is set as MIDDLE. The shift does not occur on iOS devices.![screen](https://cloud.githubusercontent.com/assets/1441263/4569044/8aab68fc-4f43-11e4-9f68-c4ac6ce6102b.jpg)