commit | 4f12b4a5993eb48774c789c614182554185a7709 | [log] [tgz] |
---|---|---|
author | Dominik Röttsches <drott@chromium.org> | Mon Aug 09 12:46:03 2021 +0300 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Aug 09 15:57:57 2021 +0000 |
tree | c9653bf6c3f42726c774836da0c64d462becfebb | |
parent | ad5944cf8dbbe2ccfb5e313aaba3cd7d59414f14 [diff] |
[COLRv1] Support retrieving ClipBox. After the discussion in [1] which was filed also in response to feedback from Ben, the COLRv1 spec moved to not using a bounding box derived from the `glyf` glyph for a give glyph id, but instead either use a ClipBox found for a particular glyph id range from a ClipList array in the COLRv1 table. If such a ClipBox is not found, perform a traversal of the COLRv1 graph to compute the union of rectangles to compute a bounding box. [1] https://github.com/googlefonts/colr-gradients-spec/issues/251 Includes FreeType roll: https://chromium.googlesource.com/chromium/src/third_party/freetype2.git/+log/47b1a541cb1943d85da3976b93f9a5ed490288e2..2c853b38a717c615d3113a64033fc896e5888fa8 Fixed: skia:12297 Cq-Include-Trybots: luci.skia.skia.primary:Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Release-All-Android_NativeFonts Change-Id: Iac3677cb1207b953876b106a1e0d754760612955 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/435116 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Dominik Röttsches <drott@google.com>