14 : runs_(
std::move(runs)), bounds_(
bounds), has_color_(has_color) {}
44 constexpr Scalar kMaximumTextScale = 48;
98 run.GetGlyphPositions()) {
101 set.emplace(glyph_position.glyph, subpixel, properties);
static void round(SkPoint *p)
static unsigned clamp(SkFixed fx, int max)
Describes a typeface along with any modifications to its intrinsic properties.
Type
Describes how the glyphs are represented in the texture.
Rect GetBounds() const
The conservative bounding box for this text frame.
static Scalar RoundScaledFontSize(Scalar scale, Scalar point_size)
GlyphAtlas::Type GetAtlasType() const
The type of atlas this run should be emplaced in.
bool HasColor() const
Returns the paint color this text frame was recorded with.
void CollectUniqueFontGlyphPairs(FontGlyphMap &glyph_map, Scalar scale, Point offset, const GlyphProperties &properties) const
size_t GetRunCount() const
The number of runs in this text frame.
static Point ComputeSubpixelPosition(const TextRun::GlyphPosition &glyph_position, AxisAlignment alignment, Point offset, Scalar scale)
const std::vector< TextRun > & GetRuns() const
Returns a reference to all the text runs in this frame.
Represents a collection of positioned glyphs from a specific font.
Optional< SkRect > bounds
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
font
Font Metadata and Metrics.
AxisAlignment
Determines the axis along which there is subpixel positioning.
static constexpr Scalar ComputeFractionalPosition(Scalar value)
std::unordered_map< ScaledFont, std::unordered_set< SubpixelGlyph > > FontGlyphMap
constexpr float y() const
constexpr float x() const
A font and a scale. Used as a key that represents a typeface within a glyph atlas.