aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkImageCacherator.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-02-29 11:22:55 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-29 11:22:55 -0800
commit27876bc1156bcdd15cac7f0fe6228eb7806b8e96 (patch)
treedc5617a6be3255ce9eced721e9c3004dc8f58bcf /src/core/SkImageCacherator.cpp
parent10d8fc29bc1605c134e98f5b58c2efb73cef6073 (diff)
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 Review URL: https://codereview.chromium.org/1740163002
Diffstat (limited to 'src/core/SkImageCacherator.cpp')
0 files changed, 0 insertions, 0 deletions