DescriptionImprove 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
Messages
Total messages: 20 (11 generated)
|