RESOLVED FIXED 143508
Add experimental code to use custom font dilation when rendering into non-opaque contexts
https://bugs.webkit.org/show_bug.cgi?id=143508
Summary Add experimental code to use custom font dilation when rendering into non-opa...
Simon Fraser (smfr)
Reported 2015-04-07 19:23:33 PDT
Experimenting with text rendering.
Attachments
Patch (14.99 KB, patch)
2015-04-07 19:30 PDT, Simon Fraser (smfr)
sam: review+
Simon Fraser (smfr)
Comment 1 2015-04-07 19:30:20 PDT
WebKit Commit Bot
Comment 2 2015-04-07 19:31:57 PDT
Attachment 250324 [details] did not pass style-queue: ERROR: Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:83: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] ERROR: Source/WebCore/ChangeLog:8: Line contains tab character. [whitespace/tab] [5] ERROR: Source/WebCore/ChangeLog:9: Line contains tab character. [whitespace/tab] [5] ERROR: Source/WebCore/ChangeLog:10: Line contains tab character. [whitespace/tab] [5] ERROR: Source/WebCore/ChangeLog:11: Line contains tab character. [whitespace/tab] [5] ERROR: Source/WebCore/ChangeLog:12: Line contains tab character. [whitespace/tab] [5] ERROR: Source/WebCore/ChangeLog:13: Line contains tab character. [whitespace/tab] [5] ERROR: Source/WebCore/ChangeLog:14: Line contains tab character. [whitespace/tab] [5] ERROR: Source/WebCore/ChangeLog:15: Line contains tab character. [whitespace/tab] [5] Total errors found: 9 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 3 2015-04-07 19:33:34 PDT
Comment on attachment 250324 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250324&action=review > Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm:207 > +static CGSize dilationSizeForTextColor(const Color& color) Can you add a comment explaining these numbers
Simon Fraser (smfr)
Comment 4 2015-04-07 21:16:17 PDT
Chris Dumez
Comment 5 2015-04-07 22:11:08 PDT
Looks like this broke iOS: /Volumes/Data/EWS/WebKit/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:82:5: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef] #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100 ^ /Volumes/Data/EWS/WebKit/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:132:5: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef] #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100 I believe __MAC_OS_X_VERSION_MIN_REQUIRED is only defined #if PLATFORM(MAC).
Chris Dumez
Comment 6 2015-04-07 22:45:40 PDT
(In reply to comment #5) > Looks like this broke iOS: > /Volumes/Data/EWS/WebKit/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:82: > 5: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 > [-Werror,-Wundef] > #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100 > ^ > /Volumes/Data/EWS/WebKit/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h: > 132:5: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to > 0 [-Werror,-Wundef] > #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100 > > I believe __MAC_OS_X_VERSION_MIN_REQUIRED is only defined #if PLATFORM(MAC). Speculative iOS build fix landed in <http://trac.webkit.org/changeset/182519>.
Simon Fraser (smfr)
Comment 7 2015-04-07 22:48:55 PDT
Thanks Chris.
Note You need to log in before you can comment on or make changes to this bug.