Flutter Engine
The Flutter Engine
third_party
skia
src
core
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
11
#include "
include/core/SkFontArguments.h
"
12
#include "
include/core/SkTypes.h
"
13
#include "
include/private/base/SkFixed.h
"
14
#include "
include/private/base/SkNoncopyable.h
"
15
#include "
include/private/base/SkTArray.h
"
16
class
SkFontStyle
;
17
class
SkStreamAsset
;
18
class
SkString
;
19
20
class
SkFontScanner
:
public
SkNoncopyable
{
21
public
:
22
virtual
~SkFontScanner
() =
default
;
23
struct
AxisDefinition
{
24
SkFourByteTag
fTag
;
25
SkScalar
fMinimum
;
26
SkScalar
fDefault
;
27
SkScalar
fMaximum
;
28
};
29
typedef
skia_private::STArray<4, AxisDefinition, true>
AxisDefinitions
;
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. */
34
virtual
bool
scanInstance
(
SkStreamAsset
*
stream
,
35
int
faceIndex,
36
int
instanceIndex,
37
SkString
*
name
,
38
SkFontStyle
* style,
39
bool
* isFixedPitch,
40
AxisDefinitions
* axes)
const
= 0;
41
};
42
43
#endif
// SKFONTSCANNER_H_
SkFixed.h
SkFontArguments.h
SkNoncopyable.h
SkTArray.h
SkTypes.h
SkFourByteTag
uint32_t SkFourByteTag
Definition:
SkTypes.h:166
SkFontScanner
Definition:
SkFontScanner.h:20
SkFontScanner::scanFace
virtual bool scanFace(SkStreamAsset *stream, int faceIndex, int *numInstances) const =0
SkFontScanner::scanInstance
virtual bool scanInstance(SkStreamAsset *stream, int faceIndex, int instanceIndex, SkString *name, SkFontStyle *style, bool *isFixedPitch, AxisDefinitions *axes) const =0
SkFontScanner::scanFile
virtual bool scanFile(SkStreamAsset *stream, int *numFaces) const =0
SkFontScanner::AxisDefinitions
skia_private::STArray< 4, AxisDefinition, true > AxisDefinitions
Definition:
SkFontScanner.h:29
SkFontScanner::~SkFontScanner
virtual ~SkFontScanner()=default
SkFontStyle
Definition:
SkFontStyle.h:16
SkNoncopyable
Definition:
SkNoncopyable.h:18
SkStreamAsset
Definition:
SkStream.h:186
SkString
Definition:
SkString.h:118
skia_private::STArray
Definition:
SkTArray.h:754
SkScalar
float SkScalar
Definition:
extension.cpp:12
dart_profiler_symbols.stream
stream
Definition:
dart_profiler_symbols.py:81
flutter::name
DEF_SWITCHES_START aot vmservice shared library name
Definition:
switches.h:32
SkFontScanner::AxisDefinition
Definition:
SkFontScanner.h:23
SkFontScanner::AxisDefinition::fTag
SkFourByteTag fTag
Definition:
SkFontScanner.h:24
SkFontScanner::AxisDefinition::fMinimum
SkScalar fMinimum
Definition:
SkFontScanner.h:25
SkFontScanner::AxisDefinition::fMaximum
SkScalar fMaximum
Definition:
SkFontScanner.h:27
SkFontScanner::AxisDefinition::fDefault
SkScalar fDefault
Definition:
SkFontScanner.h:26
Generated on Sun Jun 23 2024 21:56:12 for Flutter Engine by
1.9.4