#include <RandomScalerContext.h>
|
| SkRandomTypeface (sk_sp< SkTypeface > proxy, const SkPaint &, bool fakeit) |
|
SkTypeface * | proxy () const |
|
const SkPaint & | paint () 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 |
|
|
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 |
|
std::unique_ptr< SkStreamAsset > | onOpenStream (int *ttcIndex) const override |
|
sk_sp< SkTypeface > | onMakeClone (const SkFontArguments &args) const override |
|
void | onGetFontDescriptor (SkFontDescriptor *, bool *isLocal) const override |
|
void | onCharsToGlyphs (const SkUnichar *chars, int count, SkGlyphID glyphs[]) const override |
|
int | onCountGlyphs () const override |
|
int | onGetUPEM () const override |
|
void | onGetFamilyName (SkString *familyName) const override |
|
bool | onGetPostScriptName (SkString *) const override |
|
SkTypeface::LocalizedStrings * | onCreateFamilyNameIterator () const override |
|
void | getPostScriptGlyphNames (SkString *) 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 |
|
| 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 |
|
virtual void | weak_dispose () const |
|
Definition at line 19 of file RandomScalerContext.h.
◆ SkRandomTypeface()
Definition at line 165 of file RandomScalerContext.cpp.
167 , fProxy(std::move(
proxy))
169 , fFakeIt(fakeIt) {}
const SkPaint & paint() const
SkTypeface * proxy() const
SkFontStyle fontStyle() const
◆ getGlyphToUnicodeMap()
void SkRandomTypeface::getGlyphToUnicodeMap |
( |
SkUnichar * |
glyphToUnicode | ) |
const |
|
overrideprotectedvirtual |
◆ getPostScriptGlyphNames()
void SkRandomTypeface::getPostScriptGlyphNames |
( |
SkString * |
names | ) |
const |
|
overrideprotectedvirtual |
◆ onCharsToGlyphs()
◆ onCountGlyphs()
int SkRandomTypeface::onCountGlyphs |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ onCreateFamilyNameIterator()
Returns an iterator over the family names in the font.
Implements SkTypeface.
Definition at line 226 of file RandomScalerContext.cpp.
226 {
228}
LocalizedStrings * createFamilyNameIterator() const
◆ onCreateScalerContext()
◆ onFilterRec()
Implements SkTypeface.
Definition at line 178 of file RandomScalerContext.cpp.
178 {
182}
@ kNone
glyph outlines unchanged
void filterRec(SkScalerContextRec *rec) const
@ kARGB32_Format
SkPMColor.
SkMask::Format fMaskFormat
void setHinting(SkFontHinting)
◆ onGetAdvancedMetrics()
◆ onGetFamilyName()
void SkRandomTypeface::onGetFamilyName |
( |
SkString * |
familyName | ) |
const |
|
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 218 of file RandomScalerContext.cpp.
218 {
220}
void getFamilyName(SkString *name) const
◆ onGetFontDescriptor()
void SkRandomTypeface::onGetFontDescriptor |
( |
SkFontDescriptor * |
desc, |
|
|
bool * |
isLocal |
|
) |
| const |
|
overrideprotectedvirtual |
◆ onGetPostScriptName()
bool SkRandomTypeface::onGetPostScriptName |
( |
SkString * |
postScriptName | ) |
const |
|
overrideprotectedvirtual |
◆ onGetTableData()
size_t SkRandomTypeface::onGetTableData |
( |
SkFontTableTag |
tag, |
|
|
size_t |
offset, |
|
|
size_t |
length, |
|
|
void * |
data |
|
) |
| const |
|
overrideprotectedvirtual |
◆ onGetTableTags()
◆ onGetUPEM()
int SkRandomTypeface::onGetUPEM |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ onGetVariationDesignParameters()
Implements SkTypeface.
Definition at line 244 of file RandomScalerContext.cpp.
245 {
247}
virtual int onGetVariationDesignParameters(SkFontParameters::Variation::Axis parameters[], int parameterCount) const =0
◆ onGetVariationDesignPosition()
Implements SkTypeface.
Definition at line 238 of file RandomScalerContext.cpp.
240 {
242}
virtual int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[], int coordinateCount) const =0
◆ onGlyphMaskNeedsCurrentColor()
bool SkRandomTypeface::onGlyphMaskNeedsCurrentColor |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ onMakeClone()
Implements SkTypeface.
Definition at line 196 of file RandomScalerContext.cpp.
196 {
199 return nullptr;
200 }
201 return sk_make_sp<SkRandomTypeface>(
proxy, fPaint, fFakeIt);
202}
sk_sp< SkTypeface > makeClone(const SkFontArguments &) const
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
◆ onOpenStream()
std::unique_ptr< SkStreamAsset > SkRandomTypeface::onOpenStream |
( |
int * |
ttcIndex | ) |
const |
|
overrideprotectedvirtual |
◆ paint()
const SkPaint & SkRandomTypeface::paint |
( |
| ) |
const |
|
inline |
◆ proxy()
The documentation for this class was generated from the following files: