Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17117

Labels rendered with TTF fonts appearing cut

$
0
0

@Alwyn wrote:

I'm creating labels with custom ttf font.But it is appearing cut at the bottom.Here is the code which I'm using to create the label-

Label *label = Label::createWithTTF("someText", "fonts/digital-7.ttf", 56);
label->setColor(Color3b::BLUE);
label->setHorizontalAlignment(cocos2d::TextHAlignment::CENTER);
label->setVerticalAlignment(cocos2d::TextVAlignment::CENTER);

The part of the text is appearing cut at the bottom.What could be the reason for this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>