Skip to content
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

CCLabelTTF on WP8 #29

Open
Niborski opened this issue Apr 14, 2013 · 3 comments
Open

CCLabelTTF on WP8 #29

Niborski opened this issue Apr 14, 2013 · 3 comments

Comments

@Niborski
Copy link

Several problems with CCLabelTTF:

  • using a or a "." in a text results in a weird change in the labels boundingbox.height (it gets higher). The result is that the positioning of labels with a space in them is incorrect and unpredictable.
  • CCLabelTTF sometime uses the completely wrong font and wrong font size. This usually happens in my game after having changed the label contents several times (I cannot use CCLabelBMFont due to performance issues on WP8). I have about 30 labels on screen that regularly change.
  • other than the second bullet: extensive use in CCLabelTTF in a scene results in a crash (out of memory).
@Niborski
Copy link
Author

Solved the second problem by adding:

if (m_fontFace)
{
    FT_Done_Face(m_fontFace);
}

to FTTextPainter::SetFont(Platform::String^ fontName , UINT nSize)

@MarceloEmmerich
Copy link

anyone has a fix for the third problem? My game has a couple of screens with a lot of text, it crashes with out of memory. Thanks.

@MarceloEmmerich
Copy link

And I can experience another problem. I had an scale animation on a CCLabelTTF scaling it up from 1.0 to 40.0. After a certain value (above 10.0) the whole screen starts flickering. Going up to 10.0 instead of 40.0 removes the flickering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants