From 119a23d2cfe2e6db45ca29ecc04473f3e7ea20c3 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Fri, 9 Jun 2023 12:27:03 +0200 Subject: [PATCH] doc: Remove bogus step in font resolution algorithm This is a left-over from when setFamilies() and setFamily() were setting two different properties, for compatibility reasons. There is no longer a special step for the singular family, and the sentence is also a bit obfuscated, so we just remove it. Change-Id: Ia3c244d41f550a5062de8de63053770258dcacba Reviewed-by: Andy Shaw (cherry picked from commit 0ed324314bf151894be9bdd8272adbbc63c2b0ee) Reviewed-by: Qt Cherry-pick Bot --- src/gui/text/qfont.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index fb8ec90dd70..77e13237d45 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -471,8 +471,6 @@ QFontEngineData::~QFontEngineData() The font matching algorithm works as follows: \list 1 \li The specified font families (set by setFamilies()) are searched for. - \li If not found, then if set the specified font family exists and can be used to represent - the writing system in use, it will be selected. \li If not, a replacement font that supports the writing system is selected. The font matching algorithm will try to find the best match for all the properties set in the QFont. How this is