[Webkit-unassigned] [Bug 240213] New: .measureText() returns TextMetrics object with rounded values for bounding box

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 8 01:34:18 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=240213

            Bug ID: 240213
           Summary: .measureText() returns TextMetrics object with rounded
                    values for bounding box
           Product: WebKit
           Version: Safari 15
          Hardware: Mac (Intel)
                OS: macOS 10.15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andreas at ertdfgcvb.xyz
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 459011

  --> https://bugs.webkit.org/attachment.cgi?id=459011&action=review

Comparison between browsers

The values of the bounding box returned by CanvasRenderingContext2D.measureText() are rounded resulting in imprecise calculations in typographic centered applications (except for .actualBoundingBoxRight).

The issue might be related with:
https://bugs.webkit.org/show_bug.cgi?id=225695

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220508/482381fc/attachment-0001.htm>


More information about the webkit-unassigned mailing list