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