Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Problem with font on MainMenu scene!

Problem with font on MainMenu scene!

Put your problem here if it does not fit any of the other categories.

Problem with font on MainMenu scene!

Postby Marat » Sat Mar 24, 2012 1:51 pm

Hi guys!
I have small problem.

I have main scene, play game scene, help scene.
When i'm switching between scenes and returning back to main scene (sometimes) font characte not displayed.
Whats happen? and why it's occur sometimes? I can't understand.

On main scene am using MenuScene.class
//code
private Scene scene;
private MenuScene menuScene;

//How am loading font
fontTextureAtlas = new BitmapTextureAtlas(512, 512, TextureOptions.DEFAULT);
font = FontFactory.createFromAsset(this, GameConstants.FONT_ARIAL_BOLD, 70, true, Color.BLUE);
loadTexture(fontTextureAtlas);
loadFont(font);

//set child scene
scene.setChildScene(menuScene, false, true, true);

Between schen swithing i always unload all textures and claer all variables.

Main menu scene.png
font problem on menusecen class.
Main menu scene.png (29.55 KiB) Viewed 178 times

Main menu scene (2).png
font problem on menusecen class.
Main menu scene (2).png (22.7 KiB) Viewed 178 times
Marat
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Mar 24, 2012 1:39 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests