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.
|
|
|
|
*/
|
|
|
|
|
2007-11-12 23:41:13 +00:00
|
|
|
#ifndef NO_GUI_FONTLOADER_H
|
|
|
|
#define NO_GUI_FONTLOADER_H
|
2006-10-15 21:47:29 +00:00
|
|
|
|
|
|
|
#include "frontends/FontLoader.h"
|
|
|
|
#include "frontends/NoGuiFontMetrics.h"
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
/// Dummy FontLoader for command-line output.
|
2007-11-12 23:41:13 +00:00
|
|
|
class NoGuiFontLoader : public FontLoader
|
2006-10-15 21:47:29 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
NoGuiFontLoader() {}
|
|
|
|
///
|
|
|
|
virtual ~NoGuiFontLoader() {}
|
|
|
|
|
|
|
|
/// Update fonts after zoom, dpi, font names, or norm change
|
2007-11-12 23:41:13 +00:00
|
|
|
virtual void update() {}
|
2006-10-15 21:47:29 +00:00
|
|
|
|
|
|
|
/// Is the given font available ?
|
2007-11-12 23:41:13 +00:00
|
|
|
virtual bool available(FontInfo const &) { return false; }
|
2006-10-15 21:47:29 +00:00
|
|
|
|
2007-10-28 18:51:54 +00:00
|
|
|
/// Get the Font metrics for this FontInfo
|
|
|
|
virtual FontMetrics const & metrics(FontInfo const &) { return metrics_; }
|
2006-10-15 21:47:29 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
NoGuiFontMetrics metrics_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-11-12 23:41:13 +00:00
|
|
|
#endif // NO_GUI_FONTLOADER_H
|