3 * \file NoGuiFontLoader.h
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 NO_GUI_FONTLOADER_H
13 #define NO_GUI_FONTLOADER_H
15 #include "frontends/FontLoader.h"
16 #include "frontends/NoGuiFontMetrics.h"
21 /// Dummy FontLoader for command-line output.
22 class NoGuiFontLoader : public FontLoader
28 virtual ~NoGuiFontLoader() {}
30 /// Update fonts after zoom, dpi, font names, or norm change
31 virtual void update() {}
33 /// Is the given font available ?
34 virtual bool available(FontInfo const &) { return false; }
36 /// Get the Font metrics for this FontInfo
37 virtual FontMetrics const & metrics(FontInfo const &) { return metrics_; }
41 NoGuiFontMetrics metrics_;
44 } // namespace frontend
47 #endif // NO_GUI_FONTLOADER_H