Bug 150552 - UI fonts rendered too small on high resolution retina displays using macOS
Summary: UI fonts rendered too small on high resolution retina displays using macOS
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All macOS (All)
: medium normal
Assignee: Thorsten Wagner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: HiDPI
  Show dependency treegraph
 
Reported: 2022-08-22 20:53 UTC by Thorsten Wagner
Modified: 2022-08-29 14:32 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot 1 (878.56 KB, image/png)
2022-08-22 20:53 UTC, Thorsten Wagner
Details
Screenshot 2 (897.25 KB, image/png)
2022-08-22 20:54 UTC, Thorsten Wagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Wagner 2022-08-22 20:53:18 UTC
Description:
UI fonts are rendered too small on laptop retina displays with native resolution greater than 220 ppi (see screenshot 1, red boxes). Font rendering within document area is ok, because these fonts have to be rendered at their physical extent and independent from display resolution. For better readability UI font rendering should be like in screenshot 2, red boxes with larger fonts similar to font rendering on external displays.

Steps to Reproduce:
1. Open any LO application like Writer, Calc, Impress, Draw
2. Look at statusbar or sidebar

Actual Results:
UI fonts are rendered too small on displays with native resolution greater than 220 ppi (see screenshot 1, red boxes).

Expected Results:
UI fonts should be rendered larger and as large as on external displays or on displays with native resolution less or equal than 220 ppi (see screenshot 2, red boxese).


Reproducible: Always


User Profile Reset: No



Additional Info:
I will provide a patch resulting in screenshot 2 in short.

Reason is VCL font handling for UI fonts using integer values in points (pt). Due to a rounding issue, fonts are rendered using a smaller height after recalculation of font height for display resolution.
Comment 1 Thorsten Wagner 2022-08-22 20:53:43 UTC
Created attachment 181958 [details]
Screenshot 1
Comment 2 Thorsten Wagner 2022-08-22 20:54:01 UTC
Created attachment 181959 [details]
Screenshot 2
Comment 3 V Stuart Foote 2022-08-22 21:22:57 UTC
Reasonable, but hope we don't have a repeat of bug 127066, but probably not since in the interim the inputlince has been welded.
Comment 4 Thorsten Wagner 2022-08-23 21:07:24 UTC
Patch submitted to Gerrit waiting for review:

https://gerrit.libreoffice.org/c/core/+/138744
Comment 5 Thorsten Wagner 2022-08-29 07:33:44 UTC
Patch has been merged.