#ifndef GUI_FONTLOADER_H
#define GUI_FONTLOADER_H
-#include "GuiFontMetrics.h"
-
-#include <QFont>
+class QFont;
namespace lyx {
-namespace frontend {
-/**
- * Qt font loader for LyX. Matches Fonts against
- * actual QFont instances, and also caches metrics.
- */
-class GuiFontInfo
-{
-public:
- GuiFontInfo(FontInfo const & f);
+class FontInfo;
- /// The font instance
- QFont font;
- /// Metrics on the font
- GuiFontMetrics metrics;
-};
+namespace frontend {
+class GuiFontMetrics;
-// Load font
-GuiFontInfo const & getFontInfo(FontInfo const & f);
+/// Metrics on the font
+GuiFontMetrics const & getFontMetrics(FontInfo const & f);
/// Get the QFont for this FontInfo
QFont const & getFont(FontInfo const & f);