mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
40 lines
720 B
C
40 lines
720 B
C
|
// -*- C++ -*-
|
||
|
/**
|
||
|
* \file FontLoader.h
|
||
|
* This file is part of LyX, the document processor.
|
||
|
* Licence details can be found in the file COPYING.
|
||
|
*
|
||
|
* \author Abdelrazak Younes
|
||
|
*
|
||
|
* Full author contact details are available in file CREDITS.
|
||
|
*/
|
||
|
|
||
|
#ifndef LYX_FONTLOADER_H
|
||
|
#define LYX_FONTLOADER_H
|
||
|
|
||
|
class LyXFont;
|
||
|
|
||
|
namespace lyx {
|
||
|
namespace frontend {
|
||
|
|
||
|
/// Hold info about a particular font
|
||
|
class FontLoader
|
||
|
{
|
||
|
public:
|
||
|
///
|
||
|
FontLoader() {}
|
||
|
///
|
||
|
virtual ~FontLoader() {}
|
||
|
|
||
|
/// Update fonts after zoom, dpi, font names, or norm change
|
||
|
virtual void update() = 0;
|
||
|
|
||
|
/// Is the given font available ?
|
||
|
virtual bool available(LyXFont const & f) = 0;
|
||
|
};
|
||
|
|
||
|
} // namespace frontend
|
||
|
} // namespace lyx
|
||
|
|
||
|
#endif // QFONT_LOADER_H
|