Skia
2D Graphics Library
SkFontStyleSet Class Referenceabstract

#include <SkFontMgr.h>

Inheritance diagram for SkFontStyleSet:

Public Member Functions

virtual int count ()=0
 
virtual void getStyle (int index, SkFontStyle *, SkString *style)=0
 
virtual sk_sp< SkTypefacecreateTypeface (int index)=0
 
virtual sk_sp< SkTypefacematchStyle (const SkFontStyle &pattern)=0
 
bool unique () const
 May return true if the caller is the only owner. More...
 
void ref () const
 Increment the reference count. More...
 
void unref () const
 Decrement the reference count. More...
 

Static Public Member Functions

static sk_sp< SkFontStyleSetCreateEmpty ()
 

Protected Member Functions

sk_sp< SkTypefacematchStyleCSS3 (const SkFontStyle &pattern)
 

Member Function Documentation

◆ count()

virtual int SkFontStyleSet::count ( )
pure virtual

◆ CreateEmpty()

static sk_sp<SkFontStyleSet> SkFontStyleSet::CreateEmpty ( )
static

◆ createTypeface()

virtual sk_sp<SkTypeface> SkFontStyleSet::createTypeface ( int  index)
pure virtual

◆ getStyle()

virtual void SkFontStyleSet::getStyle ( int  index,
SkFontStyle ,
SkString style 
)
pure virtual

◆ matchStyle()

virtual sk_sp<SkTypeface> SkFontStyleSet::matchStyle ( const SkFontStyle pattern)
pure virtual

◆ matchStyleCSS3()

sk_sp<SkTypeface> SkFontStyleSet::matchStyleCSS3 ( const SkFontStyle pattern)
protected

◆ ref()

void SkRefCntBase::ref ( ) const
inlineinherited

Increment the reference count.

Must be balanced by a call to unref().

◆ unique()

bool SkRefCntBase::unique ( ) const
inlineinherited

May return true if the caller is the only owner.

Ensures that all previous owner's actions are complete.

◆ unref()

void SkRefCntBase::unref ( ) const
inlineinherited

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.


The documentation for this class was generated from the following file: