lyx_mirror/src/frontends/FontLoader.h
Abdelrazak Younes 5ddc612b73 Splitup Font in saner bits:
* Font::FontBits -> FontInfo
* Font::FONT_XXX -> all enums transfered to FontEnums.h and renamed to FontXxx

I've replaced Font uses with FontInfo were the language() member was not needed, basically all draw() and metrics methods. There's one problematic cases with InsetQuotes which I solved by taking the Buffer main language.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21240 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 18:51:54 +00:00

51 lines
941 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
namespace lyx {
class FontInfo;
namespace frontend {
class FontMetrics;
/// 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(FontInfo const & f) = 0;
/// Get the Font metrics for this FontInfo
virtual FontMetrics const & metrics(FontInfo const & f) = 0;
};
} // namespace frontend
/// Implementation is in Application.cpp
extern frontend::FontLoader & theFontLoader();
} // namespace lyx
#endif // QFONT_LOADER_H