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 LYX_NO_GUI_FONTLOADER_H
13 #define LYX_NO_GUI_FONTLOADER_H
15 #include "frontends/FontLoader.h"
17 #include "frontends/NoGuiFontMetrics.h"
22 /// Dummy FontLoader for command-line output.
23 class NoGuiFontLoader: public FontLoader
29 virtual ~NoGuiFontLoader() {}
31 /// Update fonts after zoom, dpi, font names, or norm change
32 virtual void update() {};
34 /// Is the given font available ?
35 virtual bool available(LyXFont const &) { return false; };
37 /// Get the Font metrics for this LyXFont
38 virtual FontMetrics const & metrics(LyXFont const &) { return metrics_; }
42 NoGuiFontMetrics metrics_;
45 } // namespace frontend
48 #endif // LYX_NO_GUI_FONTLOADER_H