WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
69819
[Mac] Draw glyphs with their original matrix and font size
https://bugs.webkit.org/show_bug.cgi?id=69819
Summary
[Mac] Draw glyphs with their original matrix and font size
Benjamin Poulain
Reported
2011-10-10 23:18:39 PDT
Currently, the font matrix is applied scaled to the font size in some cases. In those cases, the font size is set to 1.0 to avoid setting font the size twice, and the text is rendered. If I understand this thing correctly, it would be simpler to apply the base matrix and set the font size in all cases. This would make the code simpler and hopefully a bit more effective.
Attachments
Patch
(2.14 KB, patch)
2011-10-10 23:32 PDT
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2011-10-10 23:32:03 PDT
Created
attachment 110480
[details]
Patch
Darin Adler
Comment 2
2011-10-11 17:41:41 PDT
Comment on
attachment 110480
[details]
Patch This looks like it could change the behavior for color bitmap fonts.
Darin Adler
Comment 3
2011-10-11 17:42:20 PDT
If the only benefit of this change is more elegance, and this doesn’t fix any bugs, then we should be doubly sure this doesn’t create any problems.
Benjamin Poulain
Comment 4
2011-10-11 19:12:49 PDT
Comment on
attachment 110480
[details]
Patch (In reply to
comment #3
)
> If the only benefit of this change is more elegance, and this doesn’t fix any bugs, then we should be doubly sure this doesn’t create any problems.
I was also looking into using more CoreText instead of NSFont in order to have more code shared with iOS.
> This looks like it could change the behavior for color bitmap fonts.
I clear the review flag for now. I'll test specifically bitmap fonts next weekend.
Benjamin Poulain
Comment 5
2011-10-16 14:45:44 PDT
Bitmap fonts are fine with this patch. However, I see third party can potentially override WebFontCache. In this case, the third party could return a font that is not actually of the requested size, which would break with this patch. Closing, that is not worth the risk.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug