43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qwindowdefs.h>
45 #include <QtCore/qstring.h>
46 #include <QtCore/qsharedpointer.h>
63 OldEnglish, Decorative = OldEnglish,
73 PreferDefault = 0x0001,
74 PreferBitmap = 0x0002,
75 PreferDevice = 0x0004,
76 PreferOutline = 0x0008,
77 ForceOutline = 0x0010,
79 PreferQuality = 0x0040,
80 PreferAntialias = 0x0080,
82 NoSubpixelAntialias = 0x0800,
83 PreferNoShaping = 0x1000,
84 NoFontMerging = 0x8000
89 PreferDefaultHinting = 0,
91 PreferVerticalHinting = 2,
146 NoPropertiesResolved = 0x0000,
147 FamilyResolved = 0x0001,
148 SizeResolved = 0x0002,
149 StyleHintResolved = 0x0004,
150 StyleStrategyResolved = 0x0008,
151 WeightResolved = 0x0010,
152 StyleResolved = 0x0020,
153 UnderlineResolved = 0x0040,
154 OverlineResolved = 0x0080,
155 StrikeOutResolved = 0x0100,
156 FixedPitchResolved = 0x0200,
157 StretchResolved = 0x0400,
158 KerningResolved = 0x0800,
159 CapitalizationResolved = 0x1000,
160 LetterSpacingResolved = 0x2000,
161 WordSpacingResolved = 0x4000,
162 HintingPreferenceResolved = 0x8000,
163 StyleNameResolved = 0x10000,
164 FamiliesResolved = 0x20000,
165 AllPropertiesResolved = 0x3ffff
171 QFont(
const QString &family,
int pointSize = -1,
int weight = -1,
bool italic =
false);
181 void setFamily(
const QString &);
187 void setStyleName(
const QString &);
189 int pointSize()
const;
190 void setPointSize(
int);
191 qreal pointSizeF()
const;
192 void setPointSizeF(
qreal);
194 int pixelSize()
const;
195 void setPixelSize(
int);
198 void setWeight(Weight
weight);
200 inline bool bold()
const;
206 inline bool italic()
const;
207 inline void setItalic(
bool b);
209 bool underline()
const;
210 void setUnderline(
bool);
212 bool overline()
const;
213 void setOverline(
bool);
215 bool strikeOut()
const;
216 void setStrikeOut(
bool);
218 bool fixedPitch()
const;
219 void setFixedPitch(
bool);
222 void setKerning(
bool);
224 StyleHint styleHint()
const;
225 StyleStrategy styleStrategy()
const;
226 void setStyleHint(StyleHint, StyleStrategy = PreferDefault);
227 void setStyleStrategy(StyleStrategy
s);
230 void setStretch(
int);
232 qreal letterSpacing()
const;
233 SpacingType letterSpacingType()
const;
236 qreal wordSpacing()
const;
239 void setCapitalization(Capitalization);
240 Capitalization capitalization()
const;
242 void setHintingPreference(HintingPreference hintingPreference);
243 HintingPreference hintingPreference()
const;
246 bool exactMatch()
const;
253 bool isCopyOf(
const QFont &)
const;
259 bool fromString(
const QString &);
266 static void removeSubstitutions(
const QString &);
269 static void cacheStatistics();
277 #if QT_DEPRECATED_SINCE(6, 0)
304 friend class QWin32PaintEngine;
309 friend class QPainterReplayer;
310 friend class QPaintBufferEngine;
314 #ifndef QT_NO_DATASTREAM
319 #ifndef QT_NO_DEBUG_STREAM
332 {
return weight() > Medium; }
352 #ifndef QT_NO_DATASTREAM
357 #ifndef QT_NO_DEBUG_STREAM
The QApplication class manages the GUI application's control flow and main settings.
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
template< typename Enum > size_t qHash(QFlags< Enum > flags, size_t seed=0) noexcept
The QFont class specifies a query for a font used for drawing text.
void setStyle(Style style)
void swap(QFont &other) noexcept
void setResolveMask(uint mask)
void setWeight(Weight weight)
The QFontInfo class provides general information about fonts. \inmodule QtGui.
The QFontMetricsF class provides font metrics information.
The QFontMetrics class provides font metrics information.
The QOpenGLContext class represents a native OpenGL context, enabling OpenGL rendering on a QSurface.
The QPainter class performs low-level painting on widgets and other paint devices.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
The QString class provides a Unicode character string.
The QStringList class provides a list of strings.
The QTextLayout class is used to lay out and render text. \inmodule QtGui.
The QTextLine class represents a line of text inside a QTextLayout. \inmodule QtGui.
The QVariant class acts like a union for the most common Qt data types.
auto it unsigned count const
QT_BEGIN_NAMESPACE bool operator<(const QMimeType &t1, const QMimeType &t2)
void swap(SimpleVector< T > &v1, SimpleVector< T > &v2)
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro vuzp8 reg2 vuzp d d ®2 endm macro vzip8 reg2 vzip d d ®2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld cleanup[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1 beq endif SRC MASK if dst_r_bpp DST_R else add endif PF add sub src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head pixblock_size cache_preload_simple process_pixblock_tail pixinterleave dst_w_basereg irp beq endif process_pixblock_tail_head tst beq irp if pixblock_size chunk_size tst beq pixld SRC pixld MASK if DST_R else pixld DST_R endif if src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head if pixblock_size cache_preload_simple endif process_pixblock_tail pixinterleave dst_w_basereg irp if pixblock_size chunk_size tst beq if DST_W else pixst DST_W else mov ORIG_W endif add lsl if lsl endif if lsl endif lsl endif lsl endif lsl endif subs mov DST_W if regs_shortage str endif bge start_of_loop_label endm macro generate_composite_function
constexpr bool operator!=(const timespec &t1, const timespec &t2)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QFont &)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QFont &)
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define QT_DEPRECATED_VERSION_X_6_0(text)
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(Class)
bool operator==(const QMakeBaseKey &one, const QMakeBaseKey &two)
GLboolean GLboolean GLboolean b
GLuint GLuint GLfloat weight
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
#define Q_DECLARE_SHARED(TYPE)
socketLayer initialize(QAbstractSocket::TcpSocket, QAbstractSocket::IPv4Protocol)
FT_UInt FT_UInt FT_Vector * kerning