Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.7.0, 5.15.1
-
Windows 7 x64 GCC 5.3 OpenGL, Android armv7 GCC 4.9
Description
I am seeing inconsistencies in the rendering of text between different platforms - see the image attachment.
The image on the top left is produced in android, and as the red guide lines indicate, it differs from the "reference" windows output in terms of vertical position and angle of the italic style.
It is the same font, the same code. Top padding and line height values are identical across the platforms.
Rectangle { // scaled 300% in the image for visibility width: 100 height: 50 color: "grey" Text { x: 4 y: 2 font.family: sysfont font.pixelSize: 13 width: contentWidth color: bgc text: "Type" } Text { x: 5 y: 13 font.family: sysfont font.pixelSize: 32 font.italic: true font.letterSpacing: -1 width: contentWidth color: topc style: Text.Sunken styleColor: bgc text: "Name" } }
EDIT: It would seem the exception here is windows, since the output from android and linux is identical.
EDIT2: Others confirmed they see no differences between rendering on macos, android and linux, so it is most likely a "windoze" thing.
Also, the font in particular is called `Ubuntu Titling` - it is a free font. I haven't tested many fonts, but I am having the same problem with the "default" (as it not setting any) font.