From f35bcb1fbaf80c8a6867eaca1c9ad3c04c0bf005 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 12 Jan 2022 07:44:22 +0200 Subject: [PATCH] QFont and QFontDatabase documentation corrections [ci skip] Signed-off-by: Ivailo Monev --- src/gui/text/qfont.cpp | 2 +- src/gui/text/qfontdatabase.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index e118db7ff..120e2d0cb 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -235,7 +235,7 @@ void QFontPrivate::resolve(uint mask, const QFontPrivate *other) \link #fontmatching font matching algorithm\endlink by choosing a particular \l{QFont::StyleStrategy} with setStyleStrategy(). - The font-matching algorithm has a lastResortFamily() and in cases + The font-matching algorithm has a lastResortFamily() in cases where a suitable match cannot be found. Every QFont has a key() which you can use, for example, as the key diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index f330ed768..dd9d82a60 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -241,7 +241,7 @@ QString QFontDatabase::styleString(const QFontInfo &fontInfo) If the font family is available from two or more foundries the foundry name is included in the family name; for example: "Helvetica [Adobe]" and "Helvetica [Cronyx]". When you specify a - family, you can either use "family [foundry]" format; for example: + family, you can use "family [foundry]" format; for example: "Helvetica [Cronyx]". If the family has a foundry it is always returned using the bracketed format, as is the case with the value returned by families(). -- 2.11.0