mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
whichFont down to 9%...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3550 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
34d28f9daa
commit
49da061b11
@ -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_);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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; }
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user