8 #ifndef SkottieTextShaper_DEFINED
9 #define SkottieTextShaper_DEFINED
14 #include "include/private/base/SkTypeTraits.h"
15 #include "include/utils/SkTextUtils.h"
157 SkTextUtils::Align
fHAlign = SkTextUtils::kLeft_Align;
float SkScalar
Definition: SkScalar.h:14
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
Definition: SkFontMgr.h:36
SkFont controls options applied when drawing and measuring text.
Definition: SkFont.h:36
SkPaint controls options applied when drawing.
Definition: SkPaint.h:44
Light weight class for managing strings.
Definition: SkString.h:118
The SkTypeface class specifies the typeface and intrinsic style of a font.
Definition: SkTypeface.h:52
Definition: TextShaper.h:30
Direction
Definition: TextShaper.h:128
ResizePolicy
Definition: TextShaper.h:109
VAlign
Definition: TextShaper.h:82
Capitalization
Definition: TextShaper.h:130
LinebreakPolicy
Definition: TextShaper.h:120
Flags
Definition: TextShaper.h:135
@ kFragmentGlyphs
Definition: TextShaper.h:140
@ kClusters
Definition: TextShaper.h:146
@ kNone
Definition: TextShaper.h:136
@ kTrackFragmentAdvanceAscent
Definition: TextShaper.h:143
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 > &)
Definition: ExternalLayer.h:16
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582
Definition: TextShaper.h:59
SkPoint fOrigin
Definition: TextShaper.h:61
ShapedGlyphs fGlyphs
Definition: TextShaper.h:60
float fAdvance
Definition: TextShaper.h:64
float fAscent
Definition: TextShaper.h:65
bool fIsWhitespace
Definition: TextShaper.h:67
uint32_t fLineIndex
Definition: TextShaper.h:66
Definition: TextShaper.h:71
float fScale
Definition: TextShaper.h:77
std::vector< Fragment > fFragments
Definition: TextShaper.h:72
size_t fMissingGlyphCount
Definition: TextShaper.h:73
SkRect computeVisualBounds() const
Definition: TextShaper.h:32
SkFont fFont
Definition: TextShaper.h:33
std::true_type sk_is_trivially_relocatable
Definition: TextShaper.h:38
size_t fSize
Definition: TextShaper.h:34
Definition: TextShaper.h:41
std::vector< SkGlyphID > fGlyphIDs
Definition: TextShaper.h:45
BoundsType
Definition: TextShaper.h:53
SkRect computeBounds(BoundsType) const
std::vector< SkPoint > fGlyphPos
Definition: TextShaper.h:46
std::vector< size_t > fClusters
Definition: TextShaper.h:51
std::vector< RunRec > fRuns
Definition: TextShaper.h:42
void draw(SkCanvas *, const SkPoint &origin, const SkPaint &) const
Definition: TextShaper.h:149
size_t fMaxLines
Definition: TextShaper.h:163
uint32_t fFlags
Definition: TextShaper.h:164
SkScalar fLineHeight
Definition: TextShaper.h:154
LinebreakPolicy fLinebreak
Definition: TextShaper.h:160
SkTextUtils::Align fHAlign
Definition: TextShaper.h:157
const char * fLocale
Definition: TextShaper.h:165
Direction fDirection
Definition: TextShaper.h:161
const sk_sp< SkTypeface > & fTypeface
Definition: TextShaper.h:150
ResizePolicy fResize
Definition: TextShaper.h:159
SkScalar fMaxTextSize
Definition: TextShaper.h:153
SkScalar fTextSize
Definition: TextShaper.h:151
Capitalization fCapitalization
Definition: TextShaper.h:162
SkScalar fMinTextSize
Definition: TextShaper.h:152
SkScalar fLineShift
Definition: TextShaper.h:155
SkScalar fAscent
Definition: TextShaper.h:156
VAlign fVAlign
Definition: TextShaper.h:158