Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Issue 510563003: win dw: Fallback to aliased if ClearType 'succeeds' but returns empty (Closed)

Created:
6 years, 3 months ago by scottmg
Modified:
6 years, 3 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

win dw: Fallback to aliased if ClearType 'succeeds' but returns empty This appears to happen for some CJK fonts where DW only returns valid data for bitmaps, not for cleartype data. This has an artifact (of course) which is that during the run where this failure case is encountered, cleartype will appear incongrously next to aliased, which looks poor. So, we'll need to fallback at a higher level. However, for M37, having something visible is more desirable than rendering blank space for characters. For reference, two screenshots. M37 Stable and then with this patch: http://imgur.com/9pf3rB9,EiTb6Li See https://code.google.com/p/chromium/issues/detail?id=396624#c10 for content of test html file. R=shrikant@chromium.org,bungeman@chromium.org,eae@chromium.org,cpu@chromium.org BUG=chromium:407945

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M src/ports/SkScalerContext_win_dw.cpp View 2 chunks +7 lines, -0 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
scottmg
(Sorry, keep forgetting Skia needs to be patched out of tree. Same patch, different Base ...
6 years, 3 months ago (2014-08-27 20:47:54 UTC) #1
Shrikant Kelkar
https://codereview.chromium.org/510563003/diff/1/src/ports/SkScalerContext_win_dw.cpp File src/ports/SkScalerContext_win_dw.cpp (right): https://codereview.chromium.org/510563003/diff/1/src/ports/SkScalerContext_win_dw.cpp#newcode401 src/ports/SkScalerContext_win_dw.cpp:401: void SkScalerContext_DW::generateMetrics(SkGlyph* glyph) { nit: optional generateMetricsInternal(SKGlyph* glyph, textureType, ...
6 years, 3 months ago (2014-08-27 21:09:13 UTC) #2
reed1
reed@google.com changed reviewers: + reed@google.com
6 years, 3 months ago (2014-08-27 21:11:21 UTC) #3
reed1
also looking at this now
6 years, 3 months ago (2014-08-27 21:11:21 UTC) #4
eae
Great work Scott, getting something to work at all is clearly better than what we ...
6 years, 3 months ago (2014-08-27 21:17:34 UTC) #5
reed1
Does this zap us into BW mode if we encounter an empty glyph (with zero ...
6 years, 3 months ago (2014-08-27 21:44:22 UTC) #6
scottmg
On 2014/08/27 21:44:22, reed1 wrote: > Does this zap us into BW mode if we ...
6 years, 3 months ago (2014-08-27 21:54:31 UTC) #7
scottmg
6 years, 3 months ago (2014-08-27 22:51:08 UTC) #8
Redone here: https://codereview.chromium.org/504343007/ . Closing this.

Powered by Google App Engine
This is Rietveld 408576698