]> git.lyx.org Git - lyx.git/blobdiff - src/FontLoader.h
next step...
[lyx.git] / src / FontLoader.h
index 189a0b986b53a6f33198db70fee16342f6b6b75e..66e1676068c11b54cb620892b4e68bd305bddf34 100644 (file)
@@ -16,8 +16,7 @@
 #pragma interface
 #endif
 
-
-#include FORMS_H_LOCATION
+#include <X11/Xlib.h>
 #include "lyxfont.h"
 #include "LString.h"
 
@@ -49,12 +48,15 @@ public:
                else
                        return doLoad(family, series, shape, size);
        };
+       /// Do we have anything matching?
+       bool available(LyXFont const & f);
+       
 private:
        /// Array of font structs
-       XFontStruct * fontstruct[4][2][4][10];
+       XFontStruct * fontstruct[LyXFont::NUM_FAMILIES][2][4][10];
 
        /// Array of font infos
-       FontInfo * fontinfo[4][2][4];
+       FontInfo * fontinfo[LyXFont::NUM_FAMILIES][2][4];
 
        /// Reset font handler
        void reset();
@@ -74,6 +76,7 @@ private:
                             LyXFont::FONT_SIZE size);
 };
 
+///
 extern FontLoader fontloader;
 
 #endif