From 49da061b119ec929e16d3e3977d545d318f9b01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 15 Feb 2002 17:14:36 +0000 Subject: [PATCH] whichFont down to 9%... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3550 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_charinset.C | 21 +++------------------ src/mathed/math_charinset.h | 10 ++-------- 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/src/mathed/math_charinset.C b/src/mathed/math_charinset.C index ea37bf58d5..1773fa89a2 100644 --- a/src/mathed/math_charinset.C +++ b/src/mathed/math_charinset.C @@ -46,27 +46,12 @@ MathInset * MathCharInset::clone() const } -int MathCharInset::ascent() const -{ - return mathed_char_ascent(code_, mi_, char_); -} - - -int MathCharInset::descent() const -{ - return mathed_char_descent(code_, mi_, char_); -} - - -int MathCharInset::width() const -{ - return mathed_char_width(code_, mi_, char_); -} - - void MathCharInset::metrics(MathMetricsInfo const & mi) const { mi_ = mi; + ascent_ = mathed_char_ascent(code_, mi_, char_); + descent_ = mathed_char_descent(code_, mi_, char_); + width_ = mathed_char_width(code_, mi_, char_); } diff --git a/src/mathed/math_charinset.h b/src/mathed/math_charinset.h index fcfa806466..325990280a 100644 --- a/src/mathed/math_charinset.h +++ b/src/mathed/math_charinset.h @@ -2,7 +2,7 @@ #ifndef MATH_CHARINSET_H #define MATH_CHARINSET_H -#include "math_inset.h" +#include "math_diminset.h" #ifdef __GNUG__ #pragma interface @@ -12,7 +12,7 @@ \author André Pönitz */ -class MathCharInset : public MathInset { +class MathCharInset : public MathDimInset { public: /// explicit MathCharInset(char c); @@ -36,12 +36,6 @@ public: void writeRaw(std::ostream &) const; /// void normalize(NormalStream &) const; - /// - int ascent() const; - /// - int descent() const; - /// - int width() const; /// identifies Charinsets MathCharInset const * asCharInset() const { return this; } ///