]> git.lyx.org Git - lyx.git/blobdiff - src/FontLoader.h
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / FontLoader.h
index f682e8d4daca9fba23046577b5f237ed8f89a3b0..66e1676068c11b54cb620892b4e68bd305bddf34 100644 (file)
@@ -16,7 +16,7 @@
 #pragma interface
 #endif
 
-#include FORMS_H_LOCATION
+#include <X11/Xlib.h>
 #include "lyxfont.h"
 #include "LString.h"
 
@@ -48,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();
@@ -72,4 +75,8 @@ private:
                             LyXFont::FONT_SHAPE shape, 
                             LyXFont::FONT_SIZE size);
 };
+
+///
+extern FontLoader fontloader;
+
 #endif