Currently we can only instantiate a variation fonts from a decoded web font buffer, even though some system fonts on macOS support variation axes, compare
https://jsfiddle.net/k6pkvj66/1/
https://jsfiddle.net/0v1wkpmz/
Our current approach on Mac font matching is to implement our own font matching, then use SkCreateTypefaceFromCTFont to create an SkTypeface.
Ben, do you recommend using SkFontMgr's createFromStream and doing something like
m_typeface->openStream(nullptr)->duplicate() on the existing system font SkTypeface object created from SkCreateTypefaceFromCTFont? Or will there be a separate API for instantiation of a system font with variation axis parameters in Skia?
Comment 1 by drott@chromium.org
, Dec 1 2016