]> Dogcows Code - chaz/openbox/commitdiff
use "fixed" as the fallback font always
authorDana Jansens <danakj@orodu.net>
Mon, 17 Feb 2003 21:45:38 +0000 (21:45 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 17 Feb 2003 21:45:38 +0000 (21:45 +0000)
otk/font.cc
otk/font.hh

index 2d983d0cab614c4b3d1af4000d7f9ec8756655a5..519e938651defffcc52f6654e579cb5eff86b539 100644 (file)
@@ -20,7 +20,6 @@ extern "C" {
 
 namespace otk {
 
-std::string Font::_fallback_font = "fixed";
 bool        Font::_xft_init      = false;
 
 Font::Font(int screen_num, const std::string &fontstring,
@@ -52,13 +51,13 @@ Font::Font(int screen_num, const std::string &fontstring,
     return;
 
   printf(_("Unable to load font: %s\n"), _fontstring.c_str());
-  printf(_("Trying fallback font: %s\n"), _fallback_font.c_str());
+  printf(_("Trying fallback font: %s\n"), "fixed");
 
   if ((_xftfont = XftFontOpenName(**display, _screen_num,
-                                  _fallback_font.c_str())))
+                                  "fixed")))
     return;
 
-  printf(_("Unable to load font: %s\n"), _fallback_font.c_str());
+  printf(_("Unable to load font: %s\n"), "fixed");
   printf(_("Aborting!.\n"));
 
   ::exit(3); // can't continue without a font
index 618d4f6ebb99cd38a5c768c40b7f6b75c5b061ff..53e48c4ebad194546cdd99e1716f98b7f4966a36 100644 (file)
@@ -23,20 +23,8 @@ class Font {
    * static members
    */
 private:
-  static std::string  _fallback_font;
-  static bool         _xft_init;
+  static bool       _xft_init;
 
-public:
-  // the fallback is only used for X fonts, not for Xft fonts, since it is
-  // assumed that X fonts will be the fallback from Xft.
-  inline static std::string fallbackFont(void) { return _fallback_font; }
-  inline static void setFallbackFont(const std::string &f)
-    { _fallback_font = f; }
-
-  /*
-   * instance members
-   */
-private:
   int               _screen_num;
 
   std::string       _fontstring;
This page took 0.023182 seconds and 4 git commands to generate.