mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
5ddc612b73
* 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
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file NoGuiFontLoader.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_NO_GUI_FONTLOADER_H
|
|
#define LYX_NO_GUI_FONTLOADER_H
|
|
|
|
#include "frontends/FontLoader.h"
|
|
|
|
#include "frontends/NoGuiFontMetrics.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
/// Dummy FontLoader for command-line output.
|
|
class NoGuiFontLoader: public FontLoader
|
|
{
|
|
public:
|
|
///
|
|
NoGuiFontLoader() {}
|
|
///
|
|
virtual ~NoGuiFontLoader() {}
|
|
|
|
/// Update fonts after zoom, dpi, font names, or norm change
|
|
virtual void update() {};
|
|
|
|
/// Is the given font available ?
|
|
virtual bool available(FontInfo const &) { return false; };
|
|
|
|
/// Get the Font metrics for this FontInfo
|
|
virtual FontMetrics const & metrics(FontInfo const &) { return metrics_; }
|
|
|
|
private:
|
|
///
|
|
NoGuiFontMetrics metrics_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // LYX_NO_GUI_FONTLOADER_H
|