15 static std::shared_ptr<TypographerContext>
Make();
30 const std::shared_ptr<GlyphAtlasContext>& atlas_context,
31 const std::vector<RenderableText>& renderable_texts)
const override;
36 bool support_light_glyphs);
39 static std::pair<std::vector<FontGlyphPair>, std::vector<Rect>>
40 CollectNewGlyphs(
const std::shared_ptr<GlyphAtlas>& atlas,
41 const std::vector<RenderableText>& renderable_texts);
To do anything rendering related with Impeller, you need a context.
The graphics context necessary to render text.
~TypographerContextSkia() override
std::shared_ptr< GlyphAtlas > CreateGlyphAtlas(Context &context, GlyphAtlas::Type type, HostBuffer &host_buffer, const std::shared_ptr< GlyphAtlasContext > &atlas_context, const std::vector< RenderableText > &renderable_texts) const override
static SkImageInfo GetImageInfo(const GlyphAtlas &atlas, Size size, bool support_light_glyphs)
std::shared_ptr< GlyphAtlasContext > CreateGlyphAtlasContext(GlyphAtlas::Type type) const override
static std::shared_ptr< TypographerContext > Make()