Bug 250020

Summary: Font size in SVG (also HTML) is rounded, creating imprecise layouts
Product: WebKit Reporter: Andreas <andreas>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, mmaxfield, sabouhallawa, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Mac (Intel)   
OS: macOS 13   
See Also: https://bugs.webkit.org/show_bug.cgi?id=149211
https://bugs.webkit.org/show_bug.cgi?id=240213
https://bugs.webkit.org/show_bug.cgi?id=249962
Attachments:
Description Flags
Animated example: text scales in steps on WebKit
none
Comparison of the scaling/font size issue none

Andreas
Reported 2023-01-03 05:59:40 PST
Created attachment 464303 [details] Animated example: text scales in steps on WebKit SVG (and HTML) font sizes in WebKit are rounded (wrongfully) creating imprecise layout or making measuring text difficult/impossible. In the attached test case and animated inline SVG with the text not scaling smoothly. Could be related to 149211, 225695 and 240213.
Attachments
Animated example: text scales in steps on WebKit (1.04 KB, text/html)
2023-01-03 05:59 PST, Andreas
no flags
Comparison of the scaling/font size issue (6.29 MB, image/gif)
2023-01-03 06:04 PST, Andreas
no flags
Andreas
Comment 1 2023-01-03 06:04:09 PST
Created attachment 464304 [details] Comparison of the scaling/font size issue
Radar WebKit Bug Importer
Comment 2 2023-01-10 06:00:18 PST
Ahmad Saleem
Comment 3 2023-07-25 17:35:54 PDT
Seems to be fixed in STP174. @Myles - your fractional font size fix might have helped here?
Ahmad Saleem
Comment 4 2023-10-02 18:20:47 PDT
*** This bug has been marked as a duplicate of bug 46987 ***
Note You need to log in before you can comment on or make changes to this bug.