From 8436864744d531ebc7cd032de1e1e90e7a75de17 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Wed, 14 Dec 2022 10:12:33 +0100 Subject: [PATCH] Document max size for QFont::setPixelSize Fixes: QTBUG-102989 Change-Id: I9a63a2ab8ac6eadf1b5a5865a0a084700d9e85d2 Reviewed-by: Eskil Abrahamsen Blomfeldt (cherry picked from commit 8165750af85e324055b89f69d2e359e40f043bfc) Reviewed-by: Qt Cherry-pick Bot --- src/gui/text/qfont.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 0ff95f90fa8..3c6c9d3f66d 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -1013,7 +1013,8 @@ qreal QFont::pointSizeF() const } /*! - Sets the font size to \a pixelSize pixels. + Sets the font size to \a pixelSize pixels, with a maxiumum size + of an unsigned 16-bit integer. Using this function makes the font device dependent. Use setPointSize() or setPointSizeF() to set the size of the font