DNESS / cocos2d-iphone

Automatically exported from code.google.com/p/cocos2d-iphone
1 stars 0 forks source link

Some Italic/Oblique Fonts render clipped at their Right-Side-Border #781

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
cocos2d-iphone 0.99.0 (and previous releases)

Helvetica-Oblique, Helvetica-BoldOblique, and Zapfino get clipped at their 
right border unless 
whitespace padding is added.

I'm not certain if this bug is in the cocos library, or in an external library.

Please see the attached project and screenshot.

Original issue reported on code.google.com by donmorri...@gmail.com on 20 Feb 2010 at 12:27

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, it seems to be a bug in FontLabel.

The work around is to apply the dimensions manually. eg:
    CCLabel *left = [CCLabel labelWithString:@"Hello Hello" 
dimensions:CGSizeMake(480,50) alignment:UITextAlignmentLeft fontName:aFont 
fontSize:32];

Original comment by ricardoq...@gmail.com on 21 Feb 2010 at 1:49