emileber / getrandomgame

Automatically exported from code.google.com/p/getrandomgame
0 stars 0 forks source link

Font are loaded each iteration #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the game
2. each time the game render text, it load the font file
3.

What is the expected output? What do you see instead?

It shouldn't load the font each time, just at the initial configuration of the 
game.

Expectation instead:
Each component that will need to output text on screen will have a pointer to 
the font it needed.

Please use labels and text to provide additional information.

Why it does load it every time? Because if you want to change the font size, 
you must re-open the font.

Original issue reported on code.google.com by ber.em...@gmail.com on 23 Jan 2012 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by ber.em...@gmail.com on 23 Jan 2012 at 8:06

GoogleCodeExporter commented 9 years ago
Changé complétement le système d'affichage et aucun texte n'est encore 
affiché, bien que les classes Font et FontManager soit créé, elle ne servent 
encore à rien.

Je termine avec l'affichage d'image et je me lance dans l'affichage de texte.

Original comment by ber.em...@gmail.com on 6 Feb 2012 at 4:13

GoogleCodeExporter commented 9 years ago

Original comment by ber.em...@gmail.com on 24 Feb 2012 at 2:50

GoogleCodeExporter commented 9 years ago
Passe maintenant pas un Manager<Font>.

C'est testé et fonctionnel

Original comment by ber.em...@gmail.com on 1 Mar 2012 at 4:53