Flutter Engine
The Flutter Engine
|
#include <SkTypeface_fontations_priv.h>
Static Public Member Functions | |
static sk_sp< SkTypeface > | MakeFromData (sk_sp< SkData > fontData, const SkFontArguments &) |
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 | |
static constexpr SkTypeface::FactoryId | FactoryId = SkSetFourByteTag('f', 'n', 't', 'a') |
Protected Member Functions | |
std::unique_ptr< SkStreamAsset > | onOpenStream (int *ttcIndex) const override |
sk_sp< SkTypeface > | onMakeClone (const SkFontArguments &args) const override |
std::unique_ptr< SkScalerContext > | onCreateScalerContext (const SkScalerContextEffects &effects, const SkDescriptor *desc) const override |
void | onFilterRec (SkScalerContextRec *) const override |
std::unique_ptr< SkAdvancedTypefaceMetrics > | onGetAdvancedMetrics () const override |
void | onGetFontDescriptor (SkFontDescriptor *, bool *) const override |
void | onCharsToGlyphs (const SkUnichar *chars, int count, SkGlyphID glyphs[]) const override |
int | onCountGlyphs () const override |
void | getPostScriptGlyphNames (SkString *) const override |
void | getGlyphToUnicodeMap (SkUnichar *) const override |
int | onGetUPEM () const override |
void | onGetFamilyName (SkString *familyName) const override |
bool | onGetPostScriptName (SkString *) const override |
SkTypeface::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, size_t, void *) const override |
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 |
SkTypeface implementation based on Google Fonts Fontations Rust libraries.
Definition at line 205 of file SkTypeface_fontations_priv.h.
|
inline |
Definition at line 217 of file SkTypeface_fontations_priv.h.
|
inline |
Definition at line 218 of file SkTypeface_fontations_priv.h.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 304 of file SkTypeface_fontations.cpp.
|
inline |
Definition at line 221 of file SkTypeface_fontations_priv.h.
Definition at line 222 of file SkTypeface_fontations_priv.h.
|
inlineoverrideprotectedvirtual |
|
static |
Definition at line 118 of file SkTypeface_fontations.cpp.
|
static |
Definition at line 113 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 291 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 300 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Returns an iterator over the family names in the font.
Implements SkTypeface.
Definition at line 350 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 913 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 314 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 919 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Returns the family name of the typeface as known by its font manager. This name may or may not be produced by the family name iterator.
Implements SkTypeface.
Definition at line 266 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 970 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 271 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 990 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 1003 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 262 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 1023 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 1012 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 283 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 862 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 857 of file SkTypeface_fontations.cpp.
|
staticconstexpr |
Definition at line 226 of file SkTypeface_fontations_priv.h.