[Webkit-unassigned] [Bug 274351] New: WebKitGTK WebCore::fontDPI() should depend on display

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 18 10:53:42 PDT 2024


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

            Bug ID: 274351
           Summary: WebKitGTK WebCore::fontDPI() should depend on display
           Product: WebKit
           Version: WebKit Local Build
          Hardware: PC
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gwhitneycom5 at pobox.com
                CC: bugs-noreply at webkitgtk.org

In WebCore/platform/PlatformScreen.h, the screenDPI() function takes a display argument, reflecting the fact that different displays on the machine running WebKit could have different physical resolutions. On the other hand, fontDPI() does not take a display argument, even though (a) a client might prefer different font scaling on different displays, and (b) in PlatformScreenGTK, a major component of implementing fontDPI() is to read the xft-dpi GtkSetting, and per https://docs.gtk.org/gtk4/class.Settings.html, "There is one GtkSettings instance per display." So it would be both natural for fontDPI() to take a display argument, and it would allow font scaling to adjust to the display a particular webview is currently showing on, which is currently impossible.

-- 
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/20240518/6a2eccf7/attachment.htm>


More information about the webkit-unassigned mailing list