16#ifdef SK_TYPEFACE_FACTORY_FREETYPE
19#ifdef SK_TYPEFACE_FACTORY_FONTATIONS
26 bool defaultInstanceOnly) {
41 for (
int faceIndex = 0; faceIndex < numFaces; ++faceIndex) {
47 if (defaultInstanceOnly) {
52 for (
int instanceIndex = 1; instanceIndex <= numInstances; ++instanceIndex) {
65 "Cannot scanInstance %s %d\n",
70 if (uniqueStyles.
find(style) ==
nullptr) {
71 uniqueStyles.
add(style);
76 "Font: %s (%d %d %d)\n",
85#ifdef SK_TYPEFACE_FACTORY_FREETYPE
92#ifdef SK_TYPEFACE_FACTORY_FONTATIONS
static void FontScanner_VariableFont(skiatest::Reporter *reporter, SkFontScanner *scanner, bool defaultInstanceOnly)
SkString GetResourcePath(const char *resource)
#define DEF_TEST(name, reporter)
#define REPORTER_ASSERT(r, cond,...)
virtual bool scanFace(SkStreamAsset *stream, int faceIndex, int *numInstances) const =0
virtual bool scanInstance(SkStreamAsset *stream, int faceIndex, int instanceIndex, SkString *name, SkFontStyle *style, bool *isFixedPitch, AxisDefinitions *axes) const =0
virtual bool scanFile(SkStreamAsset *stream, int *numFaces) const =0
static std::unique_ptr< SkStreamAsset > MakeFromFile(const char path[])
const char * c_str() const
const T * find(const T &item) const
DEF_SWITCHES_START aot vmservice shared library name