mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
de17493932
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23842 a592a061-630c-0410-9148-cb99ea01b6c8
52 lines
943 B
C++
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
|