From b056d35db49b3173cb21bc6cba75f700b3e3ab07 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 4 Dec 2006 10:33:47 +0000 Subject: [PATCH] Forgot this! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16166 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/NoGuiFontMetrics.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontends/NoGuiFontMetrics.h b/src/frontends/NoGuiFontMetrics.h index 5faaf685f8..3ff1d11eff 100644 --- a/src/frontends/NoGuiFontMetrics.h +++ b/src/frontends/NoGuiFontMetrics.h @@ -14,6 +14,8 @@ #include "frontends/FontMetrics.h" +#include "dimension.h" + #include "support/docstring.h" namespace lyx { @@ -31,6 +33,8 @@ public: virtual int maxDescent() const { return 1; } + virtual Dimension const defaultDimension() const { return Dimension(1, 1, 1); } + virtual int width(char_type) const { return 1; } virtual int ascent(char_type) const { return 1; } @@ -50,6 +54,8 @@ public: return FontMetrics::width(s); } + virtual Dimension const dimension(char_type c) const { return Dimension(1, 1, 1); } + virtual void rectText(docstring const &, int & /*width*/, int & /*ascent*/, int & /*descent*/) const {}