]> git.lyx.org Git - lyx.git/blob - src/frontends/FontLoader.h
ea5cf7388bd2f7db40d5808f1a43041f0f370e64
[lyx.git] / src / frontends / FontLoader.h
1 // -*- C++ -*-
2 /**
3  * \file FontLoader.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_FONTLOADER_H
13 #define LYX_FONTLOADER_H
14
15 class LyXFont;
16
17 namespace lyx {
18 namespace frontend {
19
20 /// Hold info about a particular font
21 class FontLoader
22 {
23 public:
24         ///
25         FontLoader() {}
26         ///
27         virtual ~FontLoader() {}
28
29         /// Update fonts after zoom, dpi, font names, or norm change
30         virtual void update() = 0;
31
32         /// Is the given font available ?
33         virtual bool available(LyXFont const & f) = 0;
34 };
35
36 } // namespace frontend
37 } // namespace lyx
38
39 #endif // QFONT_LOADER_H