Skip to content

Fast specialized CPU glyph rasterization #1692

@nicoburns

Description

@nicoburns

emilk/egui#8093 notes that glyph rasterization in egui is slower using skrifa+vello_cpu compared to the old rendering using ab_glyph. To some extent that is expected and reflects that skrifa+vello_cpu renders glyphs at higher quality.

Nevertheless, vello_cpu is a generalized rasterisation pipeline that is slower than it could be for the task of rendering glyph outlines, and we may want to consider creating an optimised pipeline specifically for glyph rasterization.

I am assuming that this rasterizer would be only for regular "outline" glyphs and COLR glyphs would still use the regular vello_cpu pipeline. We may also want to consider whether we could/should support subpixel rendering.

Prior Art

Potential sources of inspiration for such a renderer

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions