Skia
2D Graphics Library
SkShaper Class Referenceabstract

#include <SkShaper.h>

Classes

class  BiDiRunIterator
 
struct  Feature
 
class  FontRunIterator
 
class  LanguageRunIterator
 
class  RunHandler
 
class  RunIterator
 
class  ScriptRunIterator
 
class  TrivialBiDiRunIterator
 
class  TrivialFontRunIterator
 
class  TrivialLanguageRunIterator
 
class  TrivialScriptRunIterator
 

Public Member Functions

 SkShaper ()
 
virtual ~SkShaper ()
 
virtual void shape (const char *utf8, size_t utf8Bytes, const SkFont &srcFont, bool leftToRight, SkScalar width, RunHandler *) const =0
 
virtual void shape (const char *utf8, size_t utf8Bytes, FontRunIterator &, BiDiRunIterator &, ScriptRunIterator &, LanguageRunIterator &, SkScalar width, RunHandler *) const =0
 
virtual void shape (const char *utf8, size_t utf8Bytes, FontRunIterator &, BiDiRunIterator &, ScriptRunIterator &, LanguageRunIterator &, const Feature *features, size_t featuresSize, SkScalar width, RunHandler *) const =0
 

Static Public Member Functions

static std::unique_ptr< SkShaperMakePrimitive ()
 
static std::unique_ptr< SkShaperMake (sk_sp< SkFontMgr >=nullptr)
 
static void PurgeCaches ()
 
static std::unique_ptr< FontRunIteratorMakeFontMgrRunIterator (const char *utf8, size_t utf8Bytes, const SkFont &font, sk_sp< SkFontMgr > fallback)
 
static std::unique_ptr< SkShaper::FontRunIteratorMakeFontMgrRunIterator (const char *utf8, size_t utf8Bytes, const SkFont &font, sk_sp< SkFontMgr > fallback, const char *requestName, SkFontStyle requestStyle, const SkShaper::LanguageRunIterator *)
 
static std::unique_ptr< BiDiRunIteratorMakeBiDiRunIterator (const char *utf8, size_t utf8Bytes, uint8_t bidiLevel)
 
static std::unique_ptr< ScriptRunIteratorMakeScriptRunIterator (const char *utf8, size_t utf8Bytes, SkFourByteTag script)
 
static std::unique_ptr< LanguageRunIteratorMakeStdLanguageRunIterator (const char *utf8, size_t utf8Bytes)
 

Constructor & Destructor Documentation

◆ SkShaper()

SkShaper::SkShaper ( )

◆ ~SkShaper()

virtual SkShaper::~SkShaper ( )
virtual

Member Function Documentation

◆ Make()

static std::unique_ptr<SkShaper> SkShaper::Make ( sk_sp< SkFontMgr = nullptr)
static

◆ MakeBiDiRunIterator()

static std::unique_ptr<BiDiRunIterator> SkShaper::MakeBiDiRunIterator ( const char *  utf8,
size_t  utf8Bytes,
uint8_t  bidiLevel 
)
static

◆ MakeFontMgrRunIterator() [1/2]

static std::unique_ptr<FontRunIterator> SkShaper::MakeFontMgrRunIterator ( const char *  utf8,
size_t  utf8Bytes,
const SkFont font,
sk_sp< SkFontMgr fallback 
)
static

◆ MakeFontMgrRunIterator() [2/2]

static std::unique_ptr<SkShaper::FontRunIterator> SkShaper::MakeFontMgrRunIterator ( const char *  utf8,
size_t  utf8Bytes,
const SkFont font,
sk_sp< SkFontMgr fallback,
const char *  requestName,
SkFontStyle  requestStyle,
const SkShaper::LanguageRunIterator  
)
static

◆ MakePrimitive()

static std::unique_ptr<SkShaper> SkShaper::MakePrimitive ( )
static

◆ MakeScriptRunIterator()

static std::unique_ptr<ScriptRunIterator> SkShaper::MakeScriptRunIterator ( const char *  utf8,
size_t  utf8Bytes,
SkFourByteTag  script 
)
static

◆ MakeStdLanguageRunIterator()

static std::unique_ptr<LanguageRunIterator> SkShaper::MakeStdLanguageRunIterator ( const char *  utf8,
size_t  utf8Bytes 
)
static

◆ PurgeCaches()

static void SkShaper::PurgeCaches ( )
static

◆ shape() [1/3]

virtual void SkShaper::shape ( const char *  utf8,
size_t  utf8Bytes,
const SkFont srcFont,
bool  leftToRight,
SkScalar  width,
RunHandler  
) const
pure virtual

◆ shape() [2/3]

virtual void SkShaper::shape ( const char *  utf8,
size_t  utf8Bytes,
FontRunIterator ,
BiDiRunIterator ,
ScriptRunIterator ,
LanguageRunIterator ,
const Feature features,
size_t  featuresSize,
SkScalar  width,
RunHandler  
) const
pure virtual

◆ shape() [3/3]

virtual void SkShaper::shape ( const char *  utf8,
size_t  utf8Bytes,
FontRunIterator ,
BiDiRunIterator ,
ScriptRunIterator ,
LanguageRunIterator ,
SkScalar  width,
RunHandler  
) const
pure virtual

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