diff options
author | bungeman <bungeman@google.com> | 2016-02-29 11:22:55 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-29 11:22:55 -0800 |
commit | 27876bc1156bcdd15cac7f0fe6228eb7806b8e96 (patch) | |
tree | dc5617a6be3255ce9eced721e9c3004dc8f58bcf /src/gpu/GrTraceMarker.cpp | |
parent | 10d8fc29bc1605c134e98f5b58c2efb73cef6073 (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/gpu/GrTraceMarker.cpp')
0 files changed, 0 insertions, 0 deletions