lyx_mirror/src/frontends/FontLoader.h
André Pönitz de17493932 simpliofy {Gui}FontLoader architecture a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23842 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 00:00:53 +00:00

52 lines
943 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 FONTLOADER_H
#define FONTLOADER_H
namespace lyx {
class FontInfo;
namespace frontend {
class FontMetrics;
/// Hold info about a particular font
class FontLoader
{
public:
///
FontLoader();
/// Clears cache
~FontLoader();
/// Update fonts after zoom, dpi, font names, or norm change
// (basically by deleting all cached values)
void update();
/// Is the given font available ?
bool available(FontInfo const & f);
/// Get the Font metrics for this FontInfo
FontMetrics const & metrics(FontInfo const & f);
};
} // namespace frontend
/// Implementation is in Application.cpp
extern frontend::FontLoader & theFontLoader();
} // namespace lyx
#endif // FONTLOADER_H