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

Issue 1740163002: Improve horizontal baseline detection. (Closed)

Created:
4 years, 10 months ago by bungeman-skia
Modified:
4 years, 9 months ago
Reviewers:
herb_g, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Improve horizontal baseline detection. The goal is to hint the baseline when hinting is possible, which is to say when the glyphs are be aligned with the pixel grid. The current code has three shortcomings. 1. correctly snaps when the horizontal baseline is on the x-axis but not when on the y-axis. Instead it is snapping the horizontal baseline when there is y-skew. 2. tests against the full device matrix instead of the relaxed matrix used by the scaler context. 3. has range issues when relaxing the matrix. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1740163002 Committed: https://skia.googlesource.com/skia/+/27876bc1156bcdd15cac7f0fe6228eb7806b8e96

Patch Set 1 #

Total comments: 3

Patch Set 2 : Separate setup from change. #

Patch Set 3 : Just the bug fixes first. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -29 lines) Patch
M src/core/SkFindAndPlaceGlyph.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkPaint.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkScalerContext.h View 1 2 3 chunks +13 lines, -16 lines 2 comments Download
M src/core/SkScalerContext.cpp View 1 2 1 chunk +13 lines, -5 lines 2 comments Download
M src/ports/SkFontHost_mac.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740163002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740163002/1
4 years, 10 months ago (2016-02-26 16:05:21 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-Arm7-Debug-iOS-Trybot/builds/684) Build-Mac-Clang-x86_64-Release-Trybot on ...
4 years, 10 months ago (2016-02-26 16:06:38 UTC) #7
bungeman-skia
https://codereview.chromium.org/1740163002/diff/1/src/core/SkScalerContext.cpp File src/core/SkScalerContext.cpp (left): https://codereview.chromium.org/1740163002/diff/1/src/core/SkScalerContext.cpp#oldcode836 src/core/SkScalerContext.cpp:836: if (0 == matrix[SkMatrix::kMSkewX]) { This was incorrect, or ...
4 years, 9 months ago (2016-02-29 18:00:27 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740163002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740163002/40001
4 years, 9 months ago (2016-02-29 18:00:45 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-29 18:16:04 UTC) #14
herb_g
lgtm https://codereview.chromium.org/1740163002/diff/40001/src/core/SkScalerContext.cpp File src/core/SkScalerContext.cpp (right): https://codereview.chromium.org/1740163002/diff/40001/src/core/SkScalerContext.cpp#newcode837 src/core/SkScalerContext.cpp:837: // horizontal axis, or fake italicizing it does ...
4 years, 9 months ago (2016-02-29 18:37:10 UTC) #15
bungeman-skia
https://codereview.chromium.org/1740163002/diff/40001/src/core/SkScalerContext.cpp File src/core/SkScalerContext.cpp (right): https://codereview.chromium.org/1740163002/diff/40001/src/core/SkScalerContext.cpp#newcode837 src/core/SkScalerContext.cpp:837: // horizontal axis, or fake italicizing it does not ...
4 years, 9 months ago (2016-02-29 19:21:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740163002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740163002/40001
4 years, 9 months ago (2016-02-29 19:21:43 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-02-29 19:22:59 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/27876bc1156bcdd15cac7f0fe6228eb7806b8e96

Powered by Google App Engine
This is Rietveld 408576698