Skip to content

[Impeller] Need a public Skia API to look up whether a font+glyph is a bitmap or COLR font #112005

@jonahwilliams

Description

@jonahwilliams

Current approach is:

SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(run.font());
SkBulkGlyphMetricsAndPaths paths{strikeSpec};
auto is_color = paths.glyph(glyphs[i])->isColor();

Which requires private includes. While we can construct our own Glyph instance using the glyph_ids we get from SkParagraph, these don't have any of the color/bitmap fields populated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectdependency: skiaSkia team may need to help use: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions