Project

General

Profile

Bug #3972

Text width/scaling issues in Web client(small fonts are affected mostly)

Added by Eugenie Lyzenko about 5 years ago. Updated about 5 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
03/19/2019
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:

History

#1 Updated by Eugenie Lyzenko about 5 years ago

The testcase to recreate is the most important thing here. Because the issue is not always visible. For now the text width deviations have been found for small font usage, (size < 10). The Segoe UI is the best candidate to be problematic.

Shortly the issue is the FWD call to AbstractWidget.getTextWidth(text, font) returns different values for same text and same font in Swing and Web clients. The Swing value is accurate while the Web client value is Browser/Font dependent. Different browsers can render the fonts differently.

The goal is to get predictable accurate result for Web browser case. The widget that is the most affected is TextGuiImpl.

Also available in: Atom PDF