X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiFontLoader.h;h=40c15f5ea0b60ab6391a5ae2532d76257b34f23d;hb=b6eacd8d4f86734e8abef3335b190ce12a6a11b5;hp=1d09b6d616cad0af957c37786be2e9369cbd0df6;hpb=de174939327a2e371340313498d44a44310a867b;p=lyx.git diff --git a/src/frontends/qt4/GuiFontLoader.h b/src/frontends/qt4/GuiFontLoader.h index 1d09b6d616..40c15f5ea0 100644 --- a/src/frontends/qt4/GuiFontLoader.h +++ b/src/frontends/qt4/GuiFontLoader.h @@ -12,31 +12,18 @@ #ifndef GUI_FONTLOADER_H #define GUI_FONTLOADER_H -#include "GuiFontMetrics.h" - -#include +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);