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

Issue 147005: Linux: fix fake italics for font's without italic variants. (Closed)

Created:
11 years, 6 months ago by agl
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Linux: fix fake italics for font's without italic variants. Before this patch we assumed that the style which we got from fontconfig was the one that we asked for. Rather than do this we need to query the resulting style and plumb that back into WebKit. Once WebKit knows that there's a mismatch between the request and actual styles it can trigger faking. BUG=14810

Patch Set 1 #

Total comments: 8

Patch Set 2 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -31 lines) Patch
M chrome/browser/renderer_host/render_sandbox_host_linux.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M skia/ext/SkFontHost_fontconfig.cpp View 2 chunks +9 lines, -6 lines 0 comments Download
M skia/ext/SkFontHost_fontconfig_direct.h View 1 chunk +1 line, -1 line 0 comments Download
M skia/ext/SkFontHost_fontconfig_direct.cpp View 1 3 chunks +23 lines, -12 lines 0 comments Download
M skia/ext/SkFontHost_fontconfig_impl.h View 2 chunks +4 lines, -4 lines 0 comments Download
M skia/ext/SkFontHost_fontconfig_ipc.h View 1 chunk +1 line, -1 line 0 comments Download
M skia/ext/SkFontHost_fontconfig_ipc.cpp View 1 3 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
agl
11 years, 6 months ago (2009-06-23 03:09:31 UTC) #1
Evan Martin
http://codereview.chromium.org/147005/diff/1/4 File skia/ext/SkFontHost_fontconfig_direct.cpp (right): http://codereview.chromium.org/147005/diff/1/4#newcode71 Line 71: fcvalue.u.i = is_bold ? FC_WEIGHT_BOLD : FC_WEIGHT_NORMAL; It ...
11 years, 6 months ago (2009-06-23 03:17:22 UTC) #2
agl
http://codereview.chromium.org/147005/diff/1/4 File skia/ext/SkFontHost_fontconfig_direct.cpp (right): http://codereview.chromium.org/147005/diff/1/4#newcode71 Line 71: fcvalue.u.i = is_bold ? FC_WEIGHT_BOLD : FC_WEIGHT_NORMAL; On ...
11 years, 6 months ago (2009-06-23 03:24:57 UTC) #3
Evan Martin
http://codereview.chromium.org/147005/diff/1/4 File skia/ext/SkFontHost_fontconfig_direct.cpp (right): http://codereview.chromium.org/147005/diff/1/4#newcode185 Line 185: *is_bold = resulting_bold >= FC_WEIGHT_BOLD; You're testing resulting_bold, ...
11 years, 6 months ago (2009-06-23 03:32:39 UTC) #4
Evan Martin
http://codereview.chromium.org/147005/diff/1/4 File skia/ext/SkFontHost_fontconfig_direct.cpp (right): http://codereview.chromium.org/147005/diff/1/4#newcode185 Line 185: *is_bold = resulting_bold >= FC_WEIGHT_BOLD; On 2009/06/23 03:32:39, ...
11 years, 6 months ago (2009-06-23 03:33:29 UTC) #5
Evan Martin
11 years, 6 months ago (2009-06-23 03:33:54 UTC) #6
LGTM

though I'd love to see a layout test cover thsi

Powered by Google App Engine
This is Rietveld 408576698