]> git.lyx.org Git - lyx.git/blob - src/frontends/FontLoader.h
e674a26ff1de3e9c14475b91bbc16e8095274ff3
[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 class FontMetrics;
21
22 /// Hold info about a particular font
23 class FontLoader
24 {
25 public:
26         ///
27         FontLoader() {}
28         ///
29         virtual ~FontLoader() {}
30
31         /// Update fonts after zoom, dpi, font names, or norm change
32         virtual void update() = 0;
33
34         /// Is the given font available ?
35         virtual bool available(LyXFont const & f) = 0;
36
37         /// Get the Font metrics for this LyXFont
38         virtual FontMetrics const & metrics(LyXFont const & f) = 0;
39 };
40
41 } // namespace frontend
42 } // namespace lyx
43
44 #endif // QFONT_LOADER_H