mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
parent
b0db575dc1
commit
ae37caacdd
@ -75,6 +75,8 @@ public:
|
||||
/// return the distance from the base line to where the strike out line
|
||||
/// should be drawn.
|
||||
virtual int strikeoutPos() const = 0;
|
||||
/// return true if font is not upright (italic or oblique)
|
||||
virtual bool italic() const = 0;
|
||||
|
||||
/// return the width of the char in the font
|
||||
virtual int width(char_type c) const = 0;
|
||||
|
@ -161,6 +161,12 @@ int GuiFontMetrics::strikeoutPos() const
|
||||
}
|
||||
|
||||
|
||||
bool GuiFontMetrics::italic() const
|
||||
{
|
||||
return font_.italic();
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
int const outOfLimitMetric = -10000;
|
||||
}
|
||||
|
@ -42,6 +42,7 @@ public:
|
||||
virtual int lineWidth() const;
|
||||
virtual int underlinePos() const;
|
||||
virtual int strikeoutPos() const;
|
||||
virtual bool italic() const;
|
||||
virtual int width(char_type c) const;
|
||||
virtual int ascent(char_type c) const;
|
||||
virtual int descent(char_type c) const;
|
||||
|
Loading…
Reference in New Issue
Block a user