Bug 250020 - Font size in SVG (also HTML) is rounded, creating imprecise layouts
Summary: Font size in SVG (also HTML) is rounded, creating imprecise layouts
Status: RESOLVED DUPLICATE of bug 46987
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari 16
Hardware: Mac (Intel) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-03 05:59 PST by Andreas
Modified: 2023-10-02 18:20 PDT (History)
6 users (show)

See Also:


Attachments
Animated example: text scales in steps on WebKit (1.04 KB, text/html)
2023-01-03 05:59 PST, Andreas
no flags Details
Comparison of the scaling/font size issue (6.29 MB, image/gif)
2023-01-03 06:04 PST, Andreas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***