Browse Source

only load default font if it's the ttf one, not the bam one

rdb 12 years ago
parent
commit
bf270fadc1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/rocket/config_rocket.cxx

+ 3 - 0
panda/src/rocket/config_rocket.cxx

@@ -62,6 +62,9 @@ init_librocket() {
   Rocket::Core::Initialise();
 
 #ifdef COMPILE_IN_DEFAULT_FONT
+#ifdef HAVE_FREETYPE
+  // Load Panda's default compiled-in freetype font (Perspective Sans).
   Rocket::Core::FontDatabase::LoadFontFace(default_font_data, default_font_size);
 #endif
+#endif
 }