4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Abdelrazak Younes
9 * Full author contact details are available in file CREDITS.
12 #ifndef LYX_FONTLOADER_H
13 #define LYX_FONTLOADER_H
22 /// Hold info about a particular font
29 virtual ~FontLoader() {}
31 /// Update fonts after zoom, dpi, font names, or norm change
32 virtual void update() = 0;
34 /// Is the given font available ?
35 virtual bool available(LyXFont const & f) = 0;
37 /// Get the Font metrics for this LyXFont
38 virtual FontMetrics const & metrics(LyXFont const & f) = 0;
41 } // namespace frontend
44 extern lyx::frontend::FontLoader & theFontLoader();
46 #endif // QFONT_LOADER_H