20 std::shared_ptr<TypographerContext> typographer_context)
21 : typographer_context_(
std::move(typographer_context)),
22 alpha_context_(typographer_context_
23 ? typographer_context_->CreateGlyphAtlasContext()
25 color_context_(typographer_context_
26 ? typographer_context_->CreateGlyphAtlasContext()
59 if (!typographer_context_) {
60 VALIDATION_LOG <<
"Unable to render text because a TypographerContext has "
64 if (!typographer_context_->IsValid()) {
66 <<
"Unable to render text because the TypographerContext is invalid.";
72 const std::shared_ptr<GlyphAtlasContext>& atlas_context =
74 std::shared_ptr<GlyphAtlas> atlas = typographer_context_->CreateGlyphAtlas(
75 context,
type, atlas_context, glyph_map);
76 if (!atlas || !atlas->IsValid()) {
81 alpha_atlas_ = std::move(atlas);
85 color_atlas_ = std::move(atlas);
To do anything rendering related with Impeller, you need a context.
Represents a collection of shaped text runs.