Flutter Engine
The Flutter Engine
|
#include <SkFontMgr_custom.h>
Protected Member Functions | |
std::unique_ptr< SkStreamAsset > | onOpenStream (int *ttcIndex) const override |
sk_sp< SkTypeface > | onMakeClone (const SkFontArguments &args) const override |
std::unique_ptr< SkFontData > | onMakeFontData () const override |
Protected Member Functions inherited from SkTypeface_Custom | |
void | onGetFamilyName (SkString *familyName) const override |
void | onGetFontDescriptor (SkFontDescriptor *desc, bool *isLocal) const override |
int | getIndex () const |
Protected Member Functions inherited from SkTypeface_FreeType | |
SkTypeface_FreeType (const SkFontStyle &style, bool isFixedPitch) | |
~SkTypeface_FreeType () override | |
std::unique_ptr< SkFontData > | cloneFontData (const SkFontArguments &, SkFontStyle *style) const |
std::unique_ptr< SkScalerContext > | onCreateScalerContext (const SkScalerContextEffects &, const SkDescriptor *) const override |
void | onFilterRec (SkScalerContextRec *) const override |
void | getGlyphToUnicodeMap (SkUnichar *) const override |
std::unique_ptr< SkAdvancedTypefaceMetrics > | onGetAdvancedMetrics () const override |
void | getPostScriptGlyphNames (SkString *dstArray) const override |
bool | onGetPostScriptName (SkString *) const override |
int | onGetUPEM () const override |
bool | onGetKerningPairAdjustments (const uint16_t glyphs[], int count, int32_t adjustments[]) const override |
void | onCharsToGlyphs (const SkUnichar uni[], int count, SkGlyphID glyphs[]) const override |
int | onCountGlyphs () const override |
LocalizedStrings * | onCreateFamilyNameIterator () const override |
bool | onGlyphMaskNeedsCurrentColor () const override |
int | onGetVariationDesignPosition (SkFontArguments::VariationPosition::Coordinate coordinates[], int coordinateCount) const override |
int | onGetVariationDesignParameters (SkFontParameters::Variation::Axis parameters[], int parameterCount) const override |
int | onGetTableTags (SkFontTableTag tags[]) const override |
size_t | onGetTableData (SkFontTableTag, size_t offset, size_t length, void *data) const override |
sk_sp< SkData > | onCopyTableData (SkFontTableTag) const override |
virtual std::unique_ptr< SkFontData > | onMakeFontData () const =0 |
Protected Member Functions inherited from SkTypeface | |
SkTypeface (const SkFontStyle &style, bool isFixedPitch=false) | |
~SkTypeface () override | |
virtual sk_sp< SkTypeface > | onMakeClone (const SkFontArguments &) const =0 |
void | setIsFixedPitch (bool isFixedPitch) |
void | setFontStyle (SkFontStyle style) |
virtual std::unique_ptr< SkScalerContext > | onCreateScalerContext (const SkScalerContextEffects &, const SkDescriptor *) const =0 |
virtual void | onFilterRec (SkScalerContextRec *) const =0 |
virtual std::unique_ptr< SkAdvancedTypefaceMetrics > | onGetAdvancedMetrics () const =0 |
virtual void | getPostScriptGlyphNames (SkString *) const =0 |
virtual void | getGlyphToUnicodeMap (SkUnichar *dstArray) const =0 |
virtual std::unique_ptr< SkStreamAsset > | onOpenStream (int *ttcIndex) const =0 |
virtual std::unique_ptr< SkStreamAsset > | onOpenExistingStream (int *ttcIndex) const |
virtual bool | onGlyphMaskNeedsCurrentColor () const =0 |
virtual int | onGetVariationDesignPosition (SkFontArguments::VariationPosition::Coordinate coordinates[], int coordinateCount) const =0 |
virtual int | onGetVariationDesignParameters (SkFontParameters::Variation::Axis parameters[], int parameterCount) const =0 |
virtual void | onGetFontDescriptor (SkFontDescriptor *, bool *isLocal) const =0 |
virtual void | onCharsToGlyphs (const SkUnichar *chars, int count, SkGlyphID glyphs[]) const =0 |
virtual int | onCountGlyphs () const =0 |
virtual int | onGetUPEM () const =0 |
virtual bool | onGetKerningPairAdjustments (const SkGlyphID glyphs[], int count, int32_t adjustments[]) const |
virtual void | onGetFamilyName (SkString *familyName) const =0 |
virtual bool | onGetPostScriptName (SkString *) const =0 |
virtual LocalizedStrings * | onCreateFamilyNameIterator () const =0 |
virtual int | onGetTableTags (SkFontTableTag tags[]) const =0 |
virtual size_t | onGetTableData (SkFontTableTag, size_t offset, size_t length, void *data) const =0 |
virtual sk_sp< SkData > | onCopyTableData (SkFontTableTag) const |
virtual bool | onComputeBounds (SkRect *) const |
virtual void * | onGetCTFontRef () const |
Protected Member Functions inherited from SkWeakRefCnt | |
virtual void | weak_dispose () const |
Additional Inherited Members | |
Public Types inherited from SkTypeface | |
enum class | SerializeBehavior { kDoIncludeData , kDontIncludeData , kIncludeDataIfLocal } |
using | FactoryId = SkFourByteTag |
Static Public Member Functions inherited from SkTypeface_FreeType | |
static int | GetUnitsPerEm (FT_Face face) |
static sk_sp< SkTypeface > | MakeFromStream (std::unique_ptr< SkStreamAsset >, const SkFontArguments &) |
Static Public Member Functions inherited from SkTypeface | |
static bool | Equal (const SkTypeface *facea, const SkTypeface *faceb) |
static sk_sp< SkTypeface > | MakeEmpty () |
static sk_sp< SkTypeface > | MakeDeserialize (SkStream *, sk_sp< SkFontMgr > lastResortMgr) |
static void | Register (FactoryId id, sk_sp< SkTypeface >(*make)(std::unique_ptr< SkStreamAsset >, const SkFontArguments &)) |
Static Public Attributes inherited from SkTypeface_FreeType | |
static constexpr SkTypeface::FactoryId | FactoryId = SkSetFourByteTag('f','r','e','e') |
Static Protected Member Functions inherited from SkTypeface_FreeType | |
static void | FontDataPaletteToDescriptorPalette (const SkFontData &, SkFontDescriptor *) |
The file SkTypeface implementation for the custom font manager.
Definition at line 61 of file SkFontMgr_custom.h.
SkTypeface_File::SkTypeface_File | ( | const SkFontStyle & | style, |
bool | isFixedPitch, | ||
bool | sysFont, | ||
SkString | familyName, | ||
const char | path[], | ||
int | index | ||
) |
Definition at line 60 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 71 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface_FreeType.
Definition at line 85 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 66 of file SkFontMgr_custom.cpp.