8#ifndef SkTypeface_DEFINED
9#define SkTypeface_DEFINED
82 int coordinateCount)
const;
96 int parameterCount)
const;
133 void serialize(
SkWStream*, SerializeBehavior = SerializeBehavior::kIncludeDataIfLocal)
const;
139 sk_sp<SkData> serialize(SerializeBehavior = SerializeBehavior::kIncludeDataIfLocal)
const;
173 int countGlyphs()
const;
179 int countTables()
const;
228 int getUnitsPerEm()
const;
251 int32_t adjustments[])
const;
273 LocalizedStrings* createFamilyNameIterator()
const;
296 std::unique_ptr<SkStreamAsset> openStream(
int* ttcIndex)
const;
305 std::unique_ptr<SkStreamAsset> openExistingStream(
int* ttcIndex)
const;
323 this->onFilterRec(rec);
327 this->onGetFontDescriptor(
desc, isLocal);
331 return this->onGetCTFontRef();
367 virtual void getGlyphToUnicodeMap(
SkUnichar* dstArray)
const = 0;
369 virtual std::unique_ptr<SkStreamAsset>
onOpenStream(
int* ttcIndex)
const = 0;
371 virtual std::unique_ptr<SkStreamAsset> onOpenExistingStream(
int* ttcIndex)
const;
377 int coordinateCount)
const = 0;
389 int32_t adjustments[])
const;
405 virtual bool onComputeBounds(
SkRect*)
const;
414 bool glyphMaskNeedsCurrentColor()
const;
419 std::unique_ptr<SkAdvancedTypefaceMetrics> getAdvancedMetrics()
const;
429 mutable SkOnce fBoundsOnce;
SkStrokeRec::Style fStyle
virtual bool next(LocalizedString *localizedString)=0
LocalizedStrings()=default
virtual ~LocalizedStrings()
virtual void * onGetCTFontRef() const
virtual void getPostScriptGlyphNames(SkString *) const =0
SkTypefaceID uniqueID() const
void * internal_private_getCTFontRef() const
virtual std::unique_ptr< SkAdvancedTypefaceMetrics > onGetAdvancedMetrics() const =0
void setFontStyle(SkFontStyle style)
void getFontDescriptor(SkFontDescriptor *desc, bool *isLocal) const
void setIsFixedPitch(bool isFixedPitch)
SkFontStyle fontStyle() const
virtual std::unique_ptr< SkScalerContext > onCreateScalerContext(const SkScalerContextEffects &, const SkDescriptor *) const =0
virtual int onCountGlyphs() const =0
virtual int onGetTableTags(SkFontTableTag tags[]) const =0
bool isFixedPitch() const
virtual std::unique_ptr< SkStreamAsset > onOpenStream(int *ttcIndex) const =0
void filterRec(SkScalerContextRec *rec) const
virtual void onGetFontDescriptor(SkFontDescriptor *, bool *isLocal) const =0
virtual sk_sp< SkTypeface > onMakeClone(const SkFontArguments &) const =0
virtual size_t onGetTableData(SkFontTableTag, size_t offset, size_t length, void *data) const =0
virtual bool onGetPostScriptName(SkString *) const =0
virtual void onGetFamilyName(SkString *familyName) const =0
virtual void onFilterRec(SkScalerContextRec *) const =0
virtual bool onGlyphMaskNeedsCurrentColor() const =0
virtual LocalizedStrings * onCreateFamilyNameIterator() const =0
virtual int onGetVariationDesignParameters(SkFontParameters::Variation::Axis parameters[], int parameterCount) const =0
virtual void onCharsToGlyphs(const SkUnichar *chars, int count, SkGlyphID glyphs[]) const =0
virtual int onGetUPEM() const =0
virtual int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[], int coordinateCount) const =0
DEF_SWITCHES_START aot vmservice shared library name
static void make(SkBitmap *bitmap, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace)
std::shared_ptr< const fml::Mapping > data