2006-10-03 16:17:32 +00:00
|
|
|
// -*- 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 {
|
|
|
|
|
2006-10-07 16:15:06 +00:00
|
|
|
class FontMetrics;
|
|
|
|
|
2006-10-03 16:17:32 +00:00
|
|
|
/// 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;
|
2006-10-07 16:15:06 +00:00
|
|
|
|
|
|
|
/// Get the Font metrics for this LyXFont
|
|
|
|
virtual FontMetrics const & metrics(LyXFont const & f) = 0;
|
2006-10-03 16:17:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2006-10-14 19:58:42 +00:00
|
|
|
/// Implementation is in Application.C
|
2006-10-11 17:24:46 +00:00
|
|
|
extern lyx::frontend::FontLoader & theFontLoader();
|
|
|
|
|
2006-10-03 16:17:32 +00:00
|
|
|
#endif // QFONT_LOADER_H
|