Skip to content

Optimize font finding with 4-face font families (regular, bold, italic, bolditalic) #189

@burg

Description

@burg

At present, we march over the list of entries and only return an exact match. This is wrong. There is a defined fallback order when some of the 4-face items are missing.

Gecko stores these in a specific order. We could create an Either with a 4-member struct of Option@FontEntry on one side, and a deoptimized flat list on the other side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-platform/fontsI-perf-slowUnnecessary performance degredation.I-wrongAn incorrect behaviour is observed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions