Flutter Engine
The Flutter Engine
|
#include <TestTypeface.h>
Classes | |
struct | List |
struct | Register |
Static Public Member Functions | |
static const List & | Typefaces () |
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 &)) |
Protected Member Functions | |
std::unique_ptr< SkScalerContext > | onCreateScalerContext (const SkScalerContextEffects &, const SkDescriptor *desc) const override |
void | onFilterRec (SkScalerContextRec *rec) const override |
void | getGlyphToUnicodeMap (SkUnichar *glyphToUnicode) const override |
std::unique_ptr< SkAdvancedTypefaceMetrics > | onGetAdvancedMetrics () const override |
std::unique_ptr< SkStreamAsset > | onOpenStream (int *ttcIndex) const override |
sk_sp< SkTypeface > | onMakeClone (const SkFontArguments &args) const override |
void | onGetFontDescriptor (SkFontDescriptor *desc, bool *serialize) const override |
void | onCharsToGlyphs (const SkUnichar *chars, int count, SkGlyphID glyphs[]) const override |
int | onCountGlyphs () const override |
void | getPostScriptGlyphNames (SkString *) 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 tag, size_t offset, size_t length, void *data) 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 |
Friends | |
class | SkTestScalerContext |
Additional Inherited Members | |
Public Types inherited from SkTypeface | |
enum class | SerializeBehavior { kDoIncludeData , kDontIncludeData , kIncludeDataIfLocal } |
using | FactoryId = SkFourByteTag |
Definition at line 65 of file TestTypeface.h.
Definition at line 131 of file TestTypeface.cpp.
void TestTypeface::getFontMetrics | ( | SkFontMetrics * | metrics | ) |
Definition at line 138 of file TestTypeface.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 149 of file TestTypeface.cpp.
Definition at line 140 of file TestTypeface.cpp.
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 231 of file TestTypeface.cpp.
|
inlineoverrideprotectedvirtual |
Implements SkTypeface.
Definition at line 103 of file TestTypeface.h.
|
overrideprotectedvirtual |
Returns an iterator over the family names in the font.
Implements SkTypeface.
Definition at line 241 of file TestTypeface.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 291 of file TestTypeface.cpp.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 156 of file TestTypeface.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 237 of file TestTypeface.cpp.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 219 of file TestTypeface.cpp.
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
Implements SkTypeface.
Definition at line 95 of file TestTypeface.h.
|
overrideprotectedvirtual |
Implements SkTypeface.
Definition at line 165 of file TestTypeface.cpp.
|
static |
Definition at line 43 of file TestTypeface.cpp.
|
friend |
Definition at line 139 of file TestTypeface.h.