Flutter Engine
The Flutter Engine
SkFontScanner.h
Go to the documentation of this file.
1/*
2* Copyright 2024 Google Inc.
3*
4* Use of this source code is governed by a BSD-style license that can be
5* found in the LICENSE file.
6*/
7
8#ifndef SKFONTSCANNER_H_
9#define SKFONTSCANNER_H_
10
16class SkFontStyle;
17class SkStreamAsset;
18class SkString;
19
21public:
22 virtual ~SkFontScanner() = default;
28 };
30
31 virtual bool scanFile(SkStreamAsset* stream, int* numFaces) const = 0;
32 virtual bool scanFace(SkStreamAsset* stream, int faceIndex, int* numInstances) const = 0;
33 /* instanceIndex 0 is the default instance, 1 to numInstances are the named instances. */
35 int faceIndex,
36 int instanceIndex,
38 SkFontStyle* style,
39 bool* isFixedPitch,
40 AxisDefinitions* axes) const = 0;
41};
42
43#endif // SKFONTSCANNER_H_
uint32_t SkFourByteTag
Definition: SkTypes.h:166
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
skia_private::STArray< 4, AxisDefinition, true > AxisDefinitions
Definition: SkFontScanner.h:29
virtual ~SkFontScanner()=default
float SkScalar
Definition: extension.cpp:12
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32