Skia
2D Graphics Library
SkTextBlobBuilder::RunBuffer Struct Reference

RunBuffer supplies storage for glyphs and positions within a run. More...

#include <SkTextBlob.h>

Public Member Functions

SkPoint * points () const
 
SkRSXformxforms () const
 

Public Attributes

SkGlyphIDglyphs
 storage for glyph indexes in run More...
 
SkScalarpos
 storage for glyph positions in run More...
 
char * utf8text
 storage for text UTF-8 code units in run More...
 
uint32_t * clusters
 storage for glyph clusters (index of UTF-8 code unit) More...
 

Detailed Description

RunBuffer supplies storage for glyphs and positions within a run.

A run is a sequence of glyphs sharing font metrics and positioning. Each run may position its glyphs in one of three ways: by specifying where the first glyph is drawn, and allowing font metrics to determine the advance to subsequent glyphs; by specifying a baseline, and the position on that baseline for each glyph in run; or by providing SkPoint array, one per glyph.

Member Function Documentation

◆ points()

SkPoint* SkTextBlobBuilder::RunBuffer::points ( ) const
inline

◆ xforms()

SkRSXform* SkTextBlobBuilder::RunBuffer::xforms ( ) const
inline

Member Data Documentation

◆ clusters

uint32_t* SkTextBlobBuilder::RunBuffer::clusters

storage for glyph clusters (index of UTF-8 code unit)

◆ glyphs

SkGlyphID* SkTextBlobBuilder::RunBuffer::glyphs

storage for glyph indexes in run

◆ pos

SkScalar* SkTextBlobBuilder::RunBuffer::pos

storage for glyph positions in run

◆ utf8text

char* SkTextBlobBuilder::RunBuffer::utf8text

storage for text UTF-8 code units in run


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