6#include "../wrappers.h"
73 const std::vector<SkString>& currentFamilies = style->
getFontFamilies();
74 std::vector<SkString> newFamilies;
75 newFamilies.reserve(currentFamilies.size() +
count);
77 newFamilies.push_back(*fontFamilies[
i]);
79 for (
const auto& family : currentFamilies) {
80 newFamilies.push_back(family);
139 std::vector<SkFontArguments::VariationPosition::Coordinate> coordinates;
141 coordinates.push_back({axes[
i],
values[
i]});
144 coordinates.data(),
static_cast<int>(coordinates.size())};
constexpr SkColor SK_ColorBLACK
void setDecorationStyle(TextDecorationStyle style)
void addShadow(TextShadow shadow)
void setFontFamilies(std::vector< SkString > families)
void setHeight(SkScalar height)
void setLetterSpacing(SkScalar letterSpacing)
void setWordSpacing(SkScalar wordSpacing)
const std::vector< SkString > & getFontFamilies() const
void setColor(SkColor color)
void setHeightOverride(bool heightOverride)
void setTextBaseline(TextBaseline baseline)
void setFontStyle(SkFontStyle fontStyle)
void setBackgroundColor(SkPaint paint)
void setLocale(const SkString &locale)
void setHalfLeading(bool halfLeading)
void setFontSize(SkScalar size)
void setFontArguments(const std::optional< SkFontArguments > &args)
void setForegroundColor(SkPaint paint)
void addFontFeature(const SkString &fontFeature, int value)
void setDecorationColor(SkColor color)
void setDecoration(TextDecoration decoration)
void setDecorationThicknessMultiplier(SkScalar m)
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
SkFontArguments & setVariationDesignPosition(VariationPosition position)
SKWASM_EXPORT void textStyle_setDecorationColor(TextStyle *style, SkColor color)
SKWASM_EXPORT void textStyle_setDecorationThickness(TextStyle *style, SkScalar thickness)
SKWASM_EXPORT void textStyle_setForeground(TextStyle *style, SkPaint *paint)
SKWASM_EXPORT TextStyle * textStyle_create()
SKWASM_EXPORT TextStyle * textStyle_copy(TextStyle *style)
SKWASM_EXPORT void textStyle_setLetterSpacing(TextStyle *style, SkScalar letterSpacing)
SKWASM_EXPORT void textStyle_setLocale(TextStyle *style, SkString *locale)
SKWASM_EXPORT void textStyle_setDecorationStyle(TextStyle *style, TextDecorationStyle decorationStyle)
SKWASM_EXPORT void textStyle_addFontFamilies(TextStyle *style, SkString **fontFamilies, int count)
SKWASM_EXPORT void textStyle_setColor(TextStyle *style, SkColor color)
SKWASM_EXPORT void textStyle_addFontFeature(TextStyle *style, SkString *featureName, int value)
SKWASM_EXPORT void textStyle_setDecoration(TextStyle *style, TextDecoration decoration)
SKWASM_EXPORT void textStyle_setBackground(TextStyle *style, SkPaint *paint)
SKWASM_EXPORT void textStyle_setHalfLeading(TextStyle *style, bool halfLeading)
SKWASM_EXPORT void textStyle_setFontSize(TextStyle *style, SkScalar size)
SKWASM_EXPORT void textStyle_setFontStyle(TextStyle *style, int weight, SkFontStyle::Slant slant)
SKWASM_EXPORT void textStyle_setHeight(TextStyle *style, SkScalar height)
SKWASM_EXPORT void textStyle_dispose(TextStyle *style)
SKWASM_EXPORT void textStyle_setTextBaseline(TextStyle *style, TextBaseline baseline)
SKWASM_EXPORT void textStyle_clearFontFamilies(TextStyle *style)
const double kTextHeightNone
SKWASM_EXPORT void textStyle_addShadow(TextStyle *style, SkColor color, SkScalar offsetX, SkScalar offsetY, SkScalar blurSigma)
SKWASM_EXPORT void textStyle_setWordSpacing(TextStyle *style, SkScalar wordSpacing)
SKWASM_EXPORT void textStyle_setFontVariations(TextStyle *style, SkFourByteTag *axes, float *values, int count)