#ifndef LYX_FONTLOADER_H
#define LYX_FONTLOADER_H
-class LyXFont;
-
namespace lyx {
+
+class FontInfo;
+
namespace frontend {
class FontMetrics;
virtual void update() = 0;
/// Is the given font available ?
- virtual bool available(LyXFont const & f) = 0;
+ virtual bool available(FontInfo const & f) = 0;
- /// Get the Font metrics for this LyXFont
- virtual FontMetrics const & metrics(LyXFont const & f) = 0;
+ /// Get the Font metrics for this FontInfo
+ virtual FontMetrics const & metrics(FontInfo const & f) = 0;
};
+
} // namespace frontend
+
+/// Implementation is in Application.cpp
+extern frontend::FontLoader & theFontLoader();
+
} // namespace lyx
#endif // QFONT_LOADER_H