Implement path rendering and advances for Fontations-backed SkTypeface
Generate CXX rules needed for calling back from Rust to C++ (needed for
generating and SkPath).
Implement CXX functions in new file ffi.rs for creating a font handle
shared between the Rust and C++ side. The font handle is created from
the SkData that the SkTypeface_Fontations has to keep alive while using
Fontations library code on it.
Add functions that accept such a font handle and generate a path,
advance information per glyph, font-level metrics, upem info and glyph
count.
Bug: skia:14299
Change-Id: I1e6518c1a90cf9c7137e0b353d2b5cdee95856ef
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/692737
Commit-Queue: Dominik Röttsches <drott@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
11 files changed