You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you've got a Button in Creator with its BMFont Label's size set to 24, then import it into your project, then call button->setTitleText, the title renderer will get resized to 10, since that's the initial font size value when a Button is constructed.
A potential solution is in reader/CreatorReader.cpp#397, you could use label->getRenderingFontSize() to set the button->setTitleFontSize() but that's a protected method. Even setting the fontsize there directly via label->getBMFontSize messes with the rendering and appears to end up with a system font instead. Not sure how to solve this.
The text was updated successfully, but these errors were encountered:
If you've got a Button in Creator with its BMFont Label's size set to 24, then import it into your project, then call
button->setTitleText
, the title renderer will get resized to 10, since that's the initial font size value when a Button is constructed.A potential solution is in
reader/CreatorReader.cpp#397
, you could uselabel->getRenderingFontSize()
to set thebutton->setTitleFontSize()
but that's a protected method. Even setting the fontsize there directly vialabel->getBMFontSize
messes with the rendering and appears to end up with a system font instead. Not sure how to solve this.The text was updated successfully, but these errors were encountered: