#include <SkTypeface_remote.h>
|
| SkTypefaceProxy (const SkTypefaceProxyPrototype &prototype, sk_sp< SkStrikeClient::DiscardableHandleManager > manager, bool isLogging=true) |
|
| SkTypefaceProxy (SkTypefaceID typefaceID, int glyphCount, const SkFontStyle &style, bool isFixedPitch, bool glyphMaskNeedsCurrentColor, sk_sp< SkStrikeClient::DiscardableHandleManager > manager, bool isLogging=true) |
|
SkTypefaceID | remoteTypefaceID () const |
|
int | glyphCount () const |
|
bool | isLogging () const |
|
SkFontStyle | fontStyle () const |
|
bool | isBold () const |
|
bool | isItalic () const |
|
bool | isFixedPitch () const |
|
int | getVariationDesignPosition (SkFontArguments::VariationPosition::Coordinate coordinates[], int coordinateCount) const |
|
int | getVariationDesignParameters (SkFontParameters::Variation::Axis parameters[], int parameterCount) const |
|
SkTypefaceID | uniqueID () const |
|
sk_sp< SkTypeface > | makeClone (const SkFontArguments &) const |
|
void | serialize (SkWStream *, SerializeBehavior=SerializeBehavior::kIncludeDataIfLocal) const |
|
sk_sp< SkData > | serialize (SerializeBehavior=SerializeBehavior::kIncludeDataIfLocal) const |
|
void | unicharsToGlyphs (const SkUnichar uni[], int count, SkGlyphID glyphs[]) const |
|
int | textToGlyphs (const void *text, size_t byteLength, SkTextEncoding encoding, SkGlyphID glyphs[], int maxGlyphCount) const |
|
SkGlyphID | unicharToGlyph (SkUnichar unichar) const |
|
int | countGlyphs () const |
|
int | countTables () const |
|
int | getTableTags (SkFontTableTag tags[]) const |
|
size_t | getTableSize (SkFontTableTag) const |
|
size_t | getTableData (SkFontTableTag tag, size_t offset, size_t length, void *data) const |
|
sk_sp< SkData > | copyTableData (SkFontTableTag tag) const |
|
int | getUnitsPerEm () const |
|
bool | getKerningPairAdjustments (const SkGlyphID glyphs[], int count, int32_t adjustments[]) const |
|
LocalizedStrings * | createFamilyNameIterator () const |
|
void | getFamilyName (SkString *name) const |
|
bool | getPostScriptName (SkString *name) const |
|
std::unique_ptr< SkStreamAsset > | openStream (int *ttcIndex) const |
|
std::unique_ptr< SkStreamAsset > | openExistingStream (int *ttcIndex) const |
|
std::unique_ptr< SkScalerContext > | createScalerContext (const SkScalerContextEffects &, const SkDescriptor *) const |
|
SkRect | getBounds () const |
|
void | filterRec (SkScalerContextRec *rec) const |
|
void | getFontDescriptor (SkFontDescriptor *desc, bool *isLocal) const |
|
void * | internal_private_getCTFontRef () const |
|
| SkWeakRefCnt () |
|
| ~SkWeakRefCnt () override |
|
bool | try_ref () const |
|
void | weak_ref () const |
|
void | weak_unref () const |
|
bool | weak_expired () const |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
|
int | onGetUPEM () const override |
|
std::unique_ptr< SkStreamAsset > | onOpenStream (int *ttcIndex) const override |
|
sk_sp< SkTypeface > | onMakeClone (const SkFontArguments &args) 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 |
|
void | onGetFamilyName (SkString *familyName) const override |
|
bool | onGetPostScriptName (SkString *) const override |
|
SkTypeface::LocalizedStrings * | onCreateFamilyNameIterator () const override |
|
int | onGetTableTags (SkFontTableTag tags[]) const override |
|
size_t | onGetTableData (SkFontTableTag, size_t offset, size_t length, void *data) const override |
|
std::unique_ptr< SkScalerContext > | onCreateScalerContext (const SkScalerContextEffects &effects, const SkDescriptor *desc) const override |
|
void | onFilterRec (SkScalerContextRec *rec) const override |
|
void | onGetFontDescriptor (SkFontDescriptor *, bool *) const override |
|
void | getGlyphToUnicodeMap (SkUnichar *) const override |
|
void | getPostScriptGlyphNames (SkString *) const override |
|
std::unique_ptr< SkAdvancedTypefaceMetrics > | onGetAdvancedMetrics () const override |
|
void | onCharsToGlyphs (const SkUnichar *chars, int count, SkGlyphID glyphs[]) const override |
|
int | onCountGlyphs () const override |
|
void * | onGetCTFontRef () const override |
|
| 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 | weak_dispose () const |
|
Definition at line 90 of file SkTypeface_remote.h.
◆ SkTypefaceProxy() [1/2]
Definition at line 137 of file SkTypeface_remote.cpp.
140 :
SkTypeface{prototype.style(), prototype.fIsFixedPitch}
141 , fTypefaceID{prototype.fServerTypefaceID}
142 , fGlyphCount{prototype.fGlyphCount}
144 , fGlyphMaskNeedsCurrentColor{prototype.fGlyphMaskNeedsCurrentColor}
145 , fDiscardableManager{std::move(manager)} {}
◆ SkTypefaceProxy() [2/2]
Definition at line 147 of file SkTypeface_remote.cpp.
155 , fTypefaceID{typefaceID}
158 , fGlyphMaskNeedsCurrentColor(glyphMaskNeedsCurrentColor)
159 , fDiscardableManager{std::move(manager)} {}
bool isFixedPitch() const
◆ getGlyphToUnicodeMap()
void SkTypefaceProxy::getGlyphToUnicodeMap |
( |
SkUnichar * |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ getPostScriptGlyphNames()
void SkTypefaceProxy::getPostScriptGlyphNames |
( |
SkString * |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ glyphCount()
int SkTypefaceProxy::glyphCount |
( |
| ) |
const |
|
inline |
◆ isLogging()
bool SkTypefaceProxy::isLogging |
( |
| ) |
const |
|
inline |
◆ onCharsToGlyphs()
|
inlineoverrideprotectedvirtual |
◆ onCountGlyphs()
int SkTypefaceProxy::onCountGlyphs |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onCreateFamilyNameIterator()
|
inlineoverrideprotectedvirtual |
◆ onCreateScalerContext()
|
inlineoverrideprotectedvirtual |
Implements SkTypeface.
Definition at line 145 of file SkTypeface_remote.h.
147 {
148 return std::make_unique<SkScalerContextProxy>(
150 }
sk_sp< T > sk_ref_sp(T *obj)
◆ onFilterRec()
|
inlineoverrideprotectedvirtual |
◆ onGetAdvancedMetrics()
|
inlineoverrideprotectedvirtual |
◆ onGetCTFontRef()
void * SkTypefaceProxy::onGetCTFontRef |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onGetFamilyName()
void SkTypefaceProxy::onGetFamilyName |
( |
SkString * |
familyName | ) |
const |
|
inlineoverrideprotectedvirtual |
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 129 of file SkTypeface_remote.h.
129 {
130
131 *familyName = "";
132 }
◆ onGetFontDescriptor()
|
inlineoverrideprotectedvirtual |
◆ onGetPostScriptName()
bool SkTypefaceProxy::onGetPostScriptName |
( |
SkString * |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onGetTableData()
size_t SkTypefaceProxy::onGetTableData |
( |
SkFontTableTag |
, |
|
|
size_t |
offset, |
|
|
size_t |
length, |
|
|
void * |
data |
|
) |
| const |
|
inlineoverrideprotectedvirtual |
◆ onGetTableTags()
|
inlineoverrideprotectedvirtual |
◆ onGetUPEM()
int SkTypefaceProxy::onGetUPEM |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onGetVariationDesignParameters()
|
inlineoverrideprotectedvirtual |
◆ onGetVariationDesignPosition()
|
inlineoverrideprotectedvirtual |
◆ onGlyphMaskNeedsCurrentColor()
bool SkTypefaceProxy::onGlyphMaskNeedsCurrentColor |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onMakeClone()
|
inlineoverrideprotectedvirtual |
◆ onOpenStream()
std::unique_ptr< SkStreamAsset > SkTypefaceProxy::onOpenStream |
( |
int * |
ttcIndex | ) |
const |
|
inlineoverrideprotectedvirtual |
◆ remoteTypefaceID()
The documentation for this class was generated from the following files: