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
23 /// Hold info about a particular font
30 virtual ~FontLoader() {}
32 /// Update fonts after zoom, dpi, font names, or norm change
33 virtual void update() = 0;
35 /// Is the given font available ?
36 virtual bool available(Font const & f) = 0;
38 /// Get the Font metrics for this Font
39 virtual FontMetrics const & metrics(Font const & f) = 0;
43 } // namespace frontend
45 /// Implementation is in Application.cpp
46 extern frontend::FontLoader & theFontLoader();
50 #endif // QFONT_LOADER_H