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

Description Andreas 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.
Comment 1 Andreas 2023-01-03 06:04:09 PST
Created attachment 464304 [details]
Comparison of the scaling/font size issue
Comment 2 Radar WebKit Bug Importer 2023-01-10 06:00:18 PST
<rdar://problem/104074158>
Comment 3 Ahmad Saleem 2023-07-25 17:35:54 PDT
Seems to be fixed in STP174.

@Myles - your fractional font size fix might have helped here?
Comment 4 Ahmad Saleem 2023-10-02 18:20:47 PDT

*** This bug has been marked as a duplicate of bug 46987 ***