2#ifndef ParagraphStyle_DEFINED
3#define ParagraphStyle_DEFINED
25 void setFontFamilies(std::vector<SkString> families) { fFontFamilies = std::move(families); }
52 return this->fEnabled == rhs.fEnabled &&
53 this->fHeightOverride == rhs.fHeightOverride &&
54 this->fForceHeight == rhs.fForceHeight &&
55 this->fHalfLeading == rhs.fHalfLeading &&
59 this->fFontStyle == rhs.fFontStyle &&
60 this->fFontFamilies == rhs.fFontFamilies;
65 std::vector<SkString> fFontFamilies;
82 return this->fHeight == rhs.fHeight &&
83 this->fEllipsis == rhs.fEllipsis &&
84 this->fEllipsisUtf16 == rhs.fEllipsisUtf16 &&
85 this->fTextDirection == rhs.fTextDirection && this->fTextAlign == rhs.fTextAlign &&
86 this->fDefaultTextStyle == rhs.fDefaultTextStyle &&
87 this->fReplaceTabCharacters == rhs.fReplaceTabCharacters;
107 void setEllipsis(
const std::u16string& ellipsis) { fEllipsisUtf16 = ellipsis; }
136 std::u16string fEllipsisUtf16;
141 bool fReplaceTabCharacters;
142 bool fApplyRoundingHack =
true;
static float max(float r, float g, float b)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
static bool nearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
void setEllipsis(const SkString &ellipsis)
std::u16string getEllipsisUtf16() const
TextAlign getTextAlign() const
bool unlimited_lines() const
void setReplaceTabCharacters(bool value)
SkScalar getHeight() const
bool operator==(const ParagraphStyle &rhs) const
void setEllipsis(const std::u16string &ellipsis)
void setTextDirection(TextDirection direction)
bool getReplaceTabCharacters() const
void setTextStyle(const TextStyle &textStyle)
TextHeightBehavior getTextHeightBehavior() const
const StrutStyle & getStrutStyle() const
void setMaxLines(size_t maxLines)
const TextStyle & getTextStyle() const
TextAlign effective_align() const
void setHeight(SkScalar height)
SkString getEllipsis() const
void setStrutStyle(StrutStyle strutStyle)
void setTextHeightBehavior(TextHeightBehavior v)
void setTextAlign(TextAlign align)
TextDirection getTextDirection() const
void setApplyRoundingHack(bool value)
size_t getMaxLines() const
bool getApplyRoundingHack() const
bool operator==(const StrutStyle &rhs) const
void setHalfLeading(bool halfLeading)
bool getHalfLeading() const
bool getForceStrutHeight() const
SkScalar getFontSize() const
void setFontFamilies(std::vector< SkString > families)
SkScalar getLeading() const
void setFontStyle(SkFontStyle fontStyle)
void setHeight(SkScalar height)
SkFontStyle getFontStyle() const
void setStrutEnabled(bool v)
void setForceStrutHeight(bool v)
bool getStrutEnabled() const
SkScalar getHeight() const
bool getHeightOverride() const
void setHeightOverride(bool v)
void setLeading(SkScalar Leading)
const std::vector< SkString > & getFontFamilies() const
void setFontSize(SkScalar size)