Bug 559884 - Incorrect FontData on scaled display
Summary: Incorrect FontData on scaled display
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.15   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-06 03:56 EST by Dirk Fauth CLA
Modified: 2020-02-06 03:56 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Fauth CLA 2020-02-06 03:56:00 EST
In a test case I am creating a Font using this FontData

1|Tahoma|8.25|0|WINDOWS|1|-11|0|0|0|400|0|0|0|1|0|0|0|0|Tahoma

When I have a scaling of 100% on Windows it returns me at least the Tahoma|8.25.

But on a scaling of 150% I get the following FontData on calling font.getFontData()[0].toString()

1|Tahoma|8.5|0|WINDOWS|1|-17|0|0|0|400|0|0|0|1|0|0|0|0|Tahoma

When updating the scaling to 200% I get this FontData

1|Tahoma|8.25|0|WINDOWS|1|-22|0|0|0|400|0|0|0|1|0|0|0|0|Tahoma

So for 150% the height changes from 8.25 to 8.5, while higher zoom levels seem to return the correct 8.25.

In Device#computePoints things seem to be correct from a mathematical point of view. So I can't tell if there is a computation error when creating the Font or if this is something acceptable. I just wanted to report it here so someone can have a look.