[Webkit-unassigned] [Bug 64893] New: Webkit does not scale fonts properly due to lack of DPI configurability

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 20 14:03:00 PDT 2011


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

           Summary: Webkit does not scale fonts properly due to lack of
                    DPI configurability
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://riskable.com/files/font_scaling_test.html
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: riskable at gmail.com


Due to the fact that DPI cannot be configured in Webkit's rendering engine, fonts do not get scaled properly when viewing web pages.  I have written and attached a test case (also at http://riskable.com/files/font_scaling_test.html) which clearly demonstrates the problem.  Simply open font_scaling_test.html on a system/display with any DPI higher or lower than 96 and you'll wind up with broken font rendering.  The greater the distance from 96 dpi, the more inaccurate (and broken) font rendering will be.

The point measurement system is defined as 1 point == 1/72 of an inch.  This means:

 * If you have a 10-inch display with 300 dpi, a font at 72pt should appear one inch tall.
 * If you have a 22-inch display with 96 dpi, a font at 72pt should appear one inch tall.
 * If you have a 80-inch display with 50 dpi, a font at 72pt should appear one inch tall.

See what I'm getting at?  As long as the Webkit page renderer doesn't allow configuration of display DPI, fonts will be scaled incorrectly on any display that isn't precisely 96dpi.

References:

http://en.wikipedia.org/wiki/Point_(typography)

--
Dan McDougall
"Zero-day events occur because somebody *didn't* disclose a security vulnerability."

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list