]> git.lyx.org Git - lyx.git/blobdiff - src/FontLoader.h
Reduce Michael's buglist.
[lyx.git] / src / FontLoader.h
index fce75a74b198d151d6e69baf0f6476aa6582936a..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();