Skia
2D Graphics Library
skottie::Shaper Class Referencefinal

#include <TextShaper.h>

Classes

struct  Fragment
 
struct  Result
 
struct  RunRec
 
struct  ShapedGlyphs
 
struct  TextDesc
 

Public Types

enum class  VAlign : uint8_t {
  kTop , kTopBaseline , kHybridTop , kHybridCenter ,
  kHybridBottom , kVisualTop , kVisualCenter , kVisualBottom
}
 
enum class  ResizePolicy : uint8_t { kNone , kScaleToFit , kDownscaleToFit }
 
enum class  LinebreakPolicy : uint8_t { kParagraph , kExplicit }
 
enum class  Direction : uint8_t { kLTR , kRTL }
 
enum class  Capitalization { kNone , kUpperCase }
 
enum  Flags : uint32_t {
  kNone = 0x00 , kNone , kNone , kFragmentGlyphs = 0x01 ,
  kTrackFragmentAdvanceAscent = 0x02 , kClusters = 0x04
}
 

Static Public Member Functions

static Result Shape (const SkString &text, const TextDesc &desc, const SkPoint &point, const sk_sp< SkFontMgr > &)
 
static Result Shape (const SkString &text, const TextDesc &desc, const SkRect &box, const sk_sp< SkFontMgr > &)
 

Member Enumeration Documentation

◆ Capitalization

Enumerator
kNone 
kUpperCase 

◆ Direction

enum skottie::Shaper::Direction : uint8_t
strong
Enumerator
kLTR 
kRTL 

◆ Flags

enum skottie::Shaper::Flags : uint32_t
Enumerator
kNone 
kNone 
kNone 
kFragmentGlyphs 
kTrackFragmentAdvanceAscent 
kClusters 

◆ LinebreakPolicy

enum skottie::Shaper::LinebreakPolicy : uint8_t
strong
Enumerator
kParagraph 
kExplicit 

◆ ResizePolicy

enum skottie::Shaper::ResizePolicy : uint8_t
strong
Enumerator
kNone 
kScaleToFit 
kDownscaleToFit 

◆ VAlign

enum skottie::Shaper::VAlign : uint8_t
strong
Enumerator
kTop 
kTopBaseline 
kHybridTop 
kHybridCenter 
kHybridBottom 
kVisualTop 
kVisualCenter 
kVisualBottom 

Member Function Documentation

◆ Shape() [1/2]

static Result skottie::Shaper::Shape ( const SkString text,
const TextDesc desc,
const SkPoint &  point,
const sk_sp< SkFontMgr > &   
)
static

◆ Shape() [2/2]

static Result skottie::Shaper::Shape ( const SkString text,
const TextDesc desc,
const SkRect box,
const sk_sp< SkFontMgr > &   
)
static

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