-
Notifications
You must be signed in to change notification settings - Fork 905
Text styles and line spacing [feature] #2024
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
Comments
Hi @hsdk123, It's easy to implement on Web(H5), but we need to consider to compatible JSB, so we're indecision. We'll implement these feature on Web soon, I'll send the notice to you if we have finished. Thanks for feedback. |
@dingpinglv Thanks for the reply, Good to know this is on your list. Hope to see this soon! |
@dingpinglv Hi, it's almost 3 months since I started this thread, and 8 months since the original thread - how are things going? This is the main bottleneck of my project at the moment. If this is easy to implement on the web, but not on JSB, why don't you add the function on the web version and label it as incompatible with JSB? I feel that's much more appropriate than just pushing features to a later unknown date. |
@hsdk123 I'm really sorry about the delay. As you may know, Cocos2d-html5 have been merged to Cocos2d-JS, and for more than half a year, we have been focus on it. And the main goal of 3.1 is our new renderer. It wasn't an excuse and I'm truly sorry that we haven't found time to improve the Label API. I will add a feature request for 3.2, and I think it's an important feature. Or would you mind to do it yourself temporarily if I can give you a possible implementation suggestion ? |
@pandamicro Thanks for the reply, the current estimated public release date of the project I'm currently developing is late November - I'll wait a while for an official implementation. I just wanted the team to know that this is a feature that people really care about, and have interest in. |
@dingpinglv @pandamicro Hi, I've noticed the 3.1 release post on the official blog - congrats! It's also passed into November, just wondering how work is going on this. |
@dingpinglv Thanks for all the work, this is looking absolutely great! |
Issue #2024: LabelTTF add setLineHeight
@dingpinglv Hi, it's been about half a year and I was just wondering how the bold / italics implementation is progressing (just bold if italics is taking too long a time). My main aim is to create a bold labelTTF that also can have an outline around it. |
Hi @hsdk123 , I have a question about the bold/italics: do you want to use these feature on Web platform? I have asked the -x team about this, they said that it's too difficult to implement on every platform(iOS, android, other). If you want to use these only on web platform, we can give you some private function to implement. So sorry. |
@dingpinglv Thanks for looking into this - I'm fine if this can be implemented just on Web. I'm currently going in the cordova / Node-Webkit route. If there's some private function I can implement, please let me know : b |
OK. We'll implement it soon. |
Fixed #2024: Added font-style and font-weight functions to cc.LabelTTF
Hi @hsdk123 , We added aLabel._setFontStyle("italic");
aLabel._setFontWeight("bold"); |
@dingpinglv Thanks - this really looks great : b |
Hi, I currently notice that cocos2d-html5 doesn't offer any ability to set text styles: bold, italic, etc. and the pixel height of spacing between text lines.
Bold effect is something I can somewhat replicate through Label's stroke property,
but line spacing can't be achieved currently unless I manually take apart strings and hard place each of them.
It would be great if line spacing (vertical space between lines) for label text could be set as a property through code.
An issue here was created back in Februrary asking for similar features, and was given the reply that it would be implemented after March. It's currently almost August - it would be great if this could be done by the cocos2d-html5 team.
The text was updated successfully, but these errors were encountered: