40 #ifndef QFONTMETRICS_H
41 #define QFONTMETRICS_H
43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qfont.h>
45 #include <QtCore/qsharedpointer.h>
46 #ifndef QT_INCLUDE_COMPAT
47 #include <QtCore/qrect.h>
70 int capHeight()
const;
74 int lineSpacing()
const;
75 int minLeftBearing()
const;
76 int minRightBearing()
const;
80 int averageCharWidth()
const;
82 bool inFont(
QChar)
const;
83 bool inFontUcs4(
uint ucs4)
const;
85 int leftBearing(
QChar)
const;
86 int rightBearing(
QChar)
const;
88 int horizontalAdvance(
const QString &,
int len = -1)
const;
90 int horizontalAdvance(
QChar)
const;
98 int tabstops = 0,
int *tabarray =
nullptr)
const
107 int underlinePos()
const;
108 int overlinePos()
const;
109 int strikeOutPos()
const;
110 int lineWidth()
const;
112 qreal fontDpi()
const;
141 qreal ascent()
const;
142 qreal capHeight()
const;
143 qreal descent()
const;
145 qreal leading()
const;
146 qreal lineSpacing()
const;
147 qreal minLeftBearing()
const;
148 qreal minRightBearing()
const;
151 qreal xHeight()
const;
152 qreal averageCharWidth()
const;
154 bool inFont(
QChar)
const;
155 bool inFontUcs4(
uint ucs4)
const;
175 qreal underlinePos()
const;
176 qreal overlinePos()
const;
177 qreal strikeOutPos()
const;
178 qreal lineWidth()
const;
180 qreal fontDpi()
const;
The QChar class provides a 16-bit Unicode character.
template< typename Enum > bool operator!=(Enum lhs, QFlags< Enum > rhs)
template< typename Enum > bool operator==(Enum lhs, QFlags< Enum > rhs)
The QFont class specifies a query for a font used for drawing text.
The QFontMetricsF class provides font metrics information.
The QFontMetrics class provides font metrics information.
QRect boundingRect(int x, int y, int w, int h, int flags, const QString &text, int tabstops=0, int *tabarray=nullptr) const
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QRect class defines a rectangle in the plane using integer precision.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QString class provides a Unicode character string.
QString elidedText(Qt::TextElideMode mode, const QFixed &width, int flags=0, int from=0, int count=-1) const
The QTextOption class provides a description of general rich text properties. \inmodule QtGui.
constexpr bool operator!=(const timespec &t1, const timespec &t2)
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(Class)
bool operator==(const QMakeBaseKey &one, const QMakeBaseKey &two)
GLenum GLuint GLenum GLsizei length
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLfloat GLfloat GLfloat GLfloat h
#define Q_DECLARE_SHARED(TYPE)