Skip to content

viewer: move host font discovery off the unmaintained ttf-parser before 2027-01-31 #443

Closed

Description

@ElbertePlinio

The native viewer's host font fallback (#421) finds host fonts through fontdb 0.23, which parses font files with ttf-parser 0.25. RUSTSEC-2026-0192 marks ttf-parser as unmaintained; the advisory names no vulnerability and suggests skrifa. osv-scanner.toml carries an exception for it with an expiry of 2027-01-31, so the dependency audit fails again after that date.

The viewer already parses fonts with swash for drawing, so the fallback needs a parser only to read family names, weight, style and coverage while it scans the font directories.

  • Replace fontdb's parsing with a maintained parser (for example swash, which the viewer already uses, or skrifa), or move to a fontdb release that no longer depends on ttf-parser
  • Remove the RUSTSEC-2026-0192 exception from osv-scanner.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions