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 | |
void | setIsFixedPitch (bool isFixedPitch) |
void | setFontStyle (SkFontStyle style) |
virtual std::unique_ptr< SkStreamAsset > | onOpenExistingStream (int *ttcIndex) const |
virtual bool | onGetKerningPairAdjustments (const SkGlyphID glyphs[], int count, int32_t adjustments[]) const |
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 295 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 109 of file SkTypeface_fontations.cpp.
|
static |
Definition at line 104 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 282 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 291 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Returns an iterator over the family names in the font.
Implements SkTypeface.
Definition at line 330 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 818 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 824 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 257 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 875 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 262 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 884 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 897 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 253 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 917 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 906 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 274 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 767 of file SkTypeface_fontations.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 762 of file SkTypeface_fontations.cpp.
|
staticconstexpr |
Definition at line 226 of file SkTypeface_fontations_priv.h.