From 3d3e54868e67d0789ee483a0a03990c819d434e2 Mon Sep 17 00:00:00 2001 From: Kevin Krammer Date: Thu, 18 Oct 2012 11:46:48 +0200 Subject: BlackBerry: Change base font sizes from pixels to points Previously recommended fonts sizes in pixels do not work very well on the new high resolution devices. Current UX documentation recommends point size 8 for normal text which works well on both types of devices. Backport of qtbase 4d693b6cdf879a03f77f2a06ca0e1be5605c0fc0 Change-Id: I9507b77a5e814b33cf90e714ae62d64e468710b9 Reviewed-by: Thomas McGuire Reviewed-by: Sean Harmer --- src/gui/kernel/qapplication.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index fd7fba5..d0db0d9 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -1956,8 +1956,10 @@ QFont QApplication::font() QMutexLocker locker(applicationFontMutex()); if (!QApplicationPrivate::app_font) { #if defined(Q_OS_BLACKBERRY) + // See http://docs.blackberry.com/en/developers/deliverables/41577/typography.jsp + // which recommends using font family "Slate Pro" and normal font size of 8 points QApplicationPrivate::app_font = new QFont(QLatin1String("Slate Pro")); - QApplicationPrivate::app_font->setPixelSize(21); + QApplicationPrivate::app_font->setPointSize(8); #else QApplicationPrivate::app_font = new QFont(QLatin1String("Helvetica")); #endif -- cgit v0.12