![]() |
Flutter Engine
The Flutter Engine
|
#include <SkFontMgr_custom.h>
Protected Member Functions | |
void | onGetFamilyName (SkString *familyName) const override |
void | onGetFontDescriptor (SkFontDescriptor *desc, bool *isLocal) const override |
int | getIndex () const |
![]() | |
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 |
![]() | |
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 |
![]() | |
virtual void | weak_dispose () const |
Additional Inherited Members | |
![]() | |
enum class | SerializeBehavior { kDoIncludeData , kDontIncludeData , kIncludeDataIfLocal } |
using | FactoryId = SkFourByteTag |
![]() | |
static int | GetUnitsPerEm (FT_Face face) |
static sk_sp< SkTypeface > | MakeFromStream (std::unique_ptr< SkStreamAsset >, const SkFontArguments &) |
![]() | |
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 constexpr SkTypeface::FactoryId | FactoryId = SkSetFourByteTag('f','r','e','e') |
![]() | |
static void | FontDataPaletteToDescriptorPalette (const SkFontData &, SkFontDescriptor *) |
The base SkTypeface implementation for the custom font manager.
Definition at line 25 of file SkFontMgr_custom.h.
SkTypeface_Custom::SkTypeface_Custom | ( | const SkFontStyle & | style, |
bool | isFixedPitch, | ||
bool | sysFont, | ||
SkString | familyName, | ||
int | index | ||
) |
Definition at line 28 of file SkFontMgr_custom.cpp.
|
protected |
Definition at line 47 of file SkFontMgr_custom.cpp.
bool SkTypeface_Custom::isSysFont | ( | ) | const |
Definition at line 34 of file SkFontMgr_custom.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 36 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 40 of file SkFontMgr_custom.cpp.