2006-10-15 21:47:29 +00:00
|
|
|
// -*- 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 ?
|
2007-04-29 18:17:15 +00:00
|
|
|
virtual bool available(Font const &) { return false; };
|
2006-10-15 21:47:29 +00:00
|
|
|
|
2007-04-29 18:17:15 +00:00
|
|
|
/// Get the Font metrics for this Font
|
|
|
|
virtual FontMetrics const & metrics(Font const &) { return metrics_; }
|
2006-10-15 21:47:29 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
NoGuiFontMetrics metrics_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // LYX_NO_GUI_FONTLOADER_H
|