≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Problem with setting font with ccbSetSceneNodeProperty
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Well, by bug I meant to say, that you need to put the FontFamily first not the the FaceName. If you do so, then the font will change as expected. Correct order of changing the font is as follows. [b] Point Size Family (Default|Decorative|Roman|Script|Swiss|Modern) Face Name (Arial etc) Style (Normal|Slant|Italic) Weight (Normal|Light|Bold) Underlined (True|false) [/b] while in editor it shows the fontfamily in the last. So I was talking about that, that is why I asked you to put "decorative" in between your fontsize and facename. the code itself works fine. try using [code] var s = ccbGetSceneNodeFromName("overlay"); ccbSetSceneNodeProperty(s,"Font","14; Normal; Chiller; Normal; Not Underlined;");[/code] and this code will change your font just fine, Also always make sure that the string ends with a semicolon, [b];[/b] otherwise it won't work. @robo code seems correct except that it has no semicolon after Not Underlined so it will never change the font and will show the default font. These are some things to keep in mind while working with fonts in CC. Hopefully, the font-family will be added as the last object, so that there will be no mismatch. Hope this helps*holy*[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact