Ajout des nouvelles polices pour le GUI

This commit is contained in:
Mattéo Delabre 2016-04-20 01:09:48 +02:00
parent 66081fa104
commit a3fe83c343
3 changed files with 8 additions and 0 deletions

BIN
res/fonts/overpass-bold.ttf Normal file

Binary file not shown.

BIN
res/fonts/overpass.ttf Normal file

Binary file not shown.

View File

@ -12,6 +12,14 @@ Manager::Manager() : previous_time(sf::seconds(0)), title(sf::String(L"")),
// préchargement des textures
resource_manager.preload();
// ajout des polices
desktop.GetEngine().GetResourceManager().
AddFont("overpass", resource_manager.getFont("overpass.ttf"));
desktop.GetEngine().GetResourceManager().
AddFont("overpass-bold", resource_manager.getFont("overpass-bold.ttf"));
desktop.GetEngine().GetResourceManager().
AddFont("monoid", resource_manager.getFont("monoid.ttf"));
// chargement du thème du desktop
desktop.LoadThemeFromFile("res/gui.theme");