8#ifndef TestTypeface_DEFINED
9#define TestTypeface_DEFINED
52 void init(
const SkScalar* pts,
const unsigned char* verbs);
56 const size_t fCharCodesCount;
93 std::unique_ptr<SkStreamAsset>
onOpenStream(
int* ttcIndex)
const override;
103 int onCountGlyphs()
const override {
return (
int)fTestFont->fCharCodesCount; }
116 int coordinateCount)
const override {
121 int parameterCount)
const override {
130 void*
data)
const override {
sk_sp< T > sk_ref_sp(T *obj)
static constexpr SkFourByteTag SkSetFourByteTag(char a, char b, char c, char d)
void init(const SkScalar *pts, const unsigned char *verbs)
SkTestFont(const SkTestFontData &)
SkGlyphID glyphForUnichar(SkUnichar charCode) const
void serialize(SkWStream *, SerializeBehavior=SerializeBehavior::kIncludeDataIfLocal) const
void getGlyphToUnicodeMap(SkUnichar *glyphToUnicode) const override
SkVector getAdvance(SkGlyphID) const
bool onGlyphMaskNeedsCurrentColor() const override
void onCharsToGlyphs(const SkUnichar *chars, int count, SkGlyphID glyphs[]) const override
int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[], int coordinateCount) const override
SkTypeface::LocalizedStrings * onCreateFamilyNameIterator() const override
int onGetUPEM() const override
void getPostScriptGlyphNames(SkString *) const override
bool onGetPostScriptName(SkString *) const override
std::unique_ptr< SkAdvancedTypefaceMetrics > onGetAdvancedMetrics() const override
void onGetFamilyName(SkString *familyName) const override
SkPath getPath(SkGlyphID glyph)
int onGetVariationDesignParameters(SkFontParameters::Variation::Axis parameters[], int parameterCount) const override
int onGetTableTags(SkFontTableTag tags[]) const override
static const List & Typefaces()
std::unique_ptr< SkStreamAsset > onOpenStream(int *ttcIndex) const override
size_t onGetTableData(SkFontTableTag tag, size_t offset, size_t length, void *data) const override
std::unique_ptr< SkScalerContext > onCreateScalerContext(const SkScalerContextEffects &, const SkDescriptor *desc) const override
void getFontMetrics(SkFontMetrics *metrics)
void onFilterRec(SkScalerContextRec *rec) const override
sk_sp< SkTypeface > onMakeClone(const SkFontArguments &args) const override
int onCountGlyphs() const override
void onGetFontDescriptor(SkFontDescriptor *desc, bool *serialize) const override
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
const size_t fCharCodesCount
const SkUnichar * fCharCodes
const SkFontMetrics & fMetrics
const unsigned char * fVerbs
sk_sp< SkTypeface > typeface
std::vector< Face > faces
std::vector< Family > families
std::shared_ptr< const fml::Mapping > data