Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SkTextBlobBuilder::RunBuffer Struct Reference

#include <SkTextBlob.h>

Public Member Functions

SkPointpoints () const
 
SkRSXformxforms () const
 

Public Attributes

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

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.

Definition at line 328 of file SkTextBlob.h.

Member Function Documentation

◆ points()

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

Definition at line 335 of file SkTextBlob.h.

335{ return reinterpret_cast<SkPoint*>(pos); }
SkScalar * pos
storage for glyph positions in run
Definition SkTextBlob.h:330

◆ xforms()

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

Definition at line 336 of file SkTextBlob.h.

336{ return reinterpret_cast<SkRSXform*>(pos); }

Member Data Documentation

◆ clusters

uint32_t* SkTextBlobBuilder::RunBuffer::clusters

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

Definition at line 332 of file SkTextBlob.h.

◆ glyphs

SkGlyphID* SkTextBlobBuilder::RunBuffer::glyphs

storage for glyph indexes in run

Definition at line 329 of file SkTextBlob.h.

◆ pos

SkScalar* SkTextBlobBuilder::RunBuffer::pos

storage for glyph positions in run

Definition at line 330 of file SkTextBlob.h.

◆ utf8text

char* SkTextBlobBuilder::RunBuffer::utf8text

storage for text UTF-8 code units in run

Definition at line 331 of file SkTextBlob.h.


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