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

Issue 1095004: Clamp the max size of fonts used by skia/chrome canvas. (Closed)

Created:
10 years, 9 months ago by tony
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Clamp the max size of fonts used by skia/chrome canvas. This forces us to ignore dpi sizes > 96., like we do in other places. It does allow smaller DPIs to work since that mostly just makes fonts smaller. BUG=26354 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42311

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -24 lines) Patch
M app/gfx/font.h View 1 chunk +4 lines, -0 lines 0 comments Download
M app/gfx/font_gtk.cc View 3 chunks +28 lines, -1 line 3 comments Download
M app/gfx/font_skia.cc View 2 chunks +1 line, -23 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tony
10 years, 9 months ago (2010-03-19 04:45:01 UTC) #1
Evan Martin
LGTM, I guess Elliot might have something more intelligent to say :) http://codereview.chromium.org/1095004/diff/1/3 File app/gfx/font_gtk.cc ...
10 years, 9 months ago (2010-03-19 04:56:56 UTC) #2
tony
http://codereview.chromium.org/1095004/diff/1/3 File app/gfx/font_gtk.cc (right): http://codereview.chromium.org/1095004/diff/1/3#newcode65 app/gfx/font_gtk.cc:65: scale_factor = std::min(scale_factor, 96.f); On 2010/03/19 04:56:56, Evan Martin ...
10 years, 9 months ago (2010-03-19 04:59:35 UTC) #3
Elliot Glaysher
On 2010/03/19 04:59:35, tony wrote: > http://codereview.chromium.org/1095004/diff/1/3 > File app/gfx/font_gtk.cc (right): > > http://codereview.chromium.org/1095004/diff/1/3#newcode65 > ...
10 years, 9 months ago (2010-03-19 05:06:26 UTC) #4
tony
On 2010/03/19 05:06:26, Elliot Glaysher wrote: > Does this solve (or mitigate) issue 22614? Otherwise, ...
10 years, 9 months ago (2010-03-19 05:18:00 UTC) #5
sky
10 years, 9 months ago (2010-03-23 20:33:32 UTC) #6
http://codereview.chromium.org/1095004/diff/1/3
File app/gfx/font_gtk.cc (right):

http://codereview.chromium.org/1095004/diff/1/3#newcode135
app/gfx/font_gtk.cc:135: font.FontSize() * PANGO_SCALE *
Font::GetPangoScaleFactor());
You also need to change Canvas::SetupPangoLayout otherwise we're not symmetrical
if we actually draw.

Powered by Google App Engine
This is Rietveld 408576698