[Fontations] Implement getVariationDesignParameters
Add tests based on the COLRv1 test font which offers a large set of
axes. Implement a C++ side wrapper type opaque to Rust in order to be
able to write in-place to the client-provided
SkFontParameters::Variation::Axis buffer.
Add tests to check case of no provided buffer, full buffer comparing
min, default and max values, and allocated and passed buffer being too
short.
Bug: skia:14361
Change-Id: I82aed90002d3945bb1a6fe111aeaf33faef62d0e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/716496
Commit-Queue: Dominik Röttsches <drott@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
6 files changed