Repository navigation
fix(viewer): drop ttf-parser by moving to fontdb 0.24 - #447
Merged
Merged
Conversation
fontdb 0.24 vendors the small font parser it needs and no longer depends on ttf-parser, which RUSTSEC-2026-0192 marks unmaintained. The public API is unchanged, so the host font fallback keeps its scan, order and coverage. Remove the advisory exception. Closes #443
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #443
The native viewer's host font fallback now uses
fontdb0.24, which carries its own small font parser and no longer depends onttf-parser. RUSTSEC-2026-0192 marksttf-parserunmaintained, so the exception inosv-scanner.tomlis removed.fontdb's API, Linux font discovery and fontconfig<dir>reading are unchanged, sofallback.rsandui.rsdo not change.Traceability
ttf-parsercargo tree -p pickforge-viewer -i ttf-parserandcargo tree --workspace -i ttf-parserCargo.lockdropsttf-parser,core_mathsandlibm~/.pickforge/investigations/443/tree-before.txt,tree-after.txtosv-scanner scan source --recursiveon the branch; control on theorigin/mainlockfile without the exceptionttf-parser0.25.1~/.pickforge/investigations/443/osv-after.log,osv-control-old-lock.log~/.pickforge/investigations/443/faces-before.txt,faces-after.txt,temp-tests.rs.txt~/.pickforge/investigations/443/timing-before.txt,timing-after.txt,bench.shlddon the release binaryorigin/main~/.pickforge/investigations/443/ldd-before.txt,ldd-after.txt~/.pickforge/investigations/443/qa/PICKFORGE_REQUIRE_XVFB=1 cargo test -p pickforge-viewer, native viewer vitest files~/.pickforge/investigations/443/cargo-checks.log,js-checks.logfull-suite.sh~/.pickforge/investigations/443/full/pickcheck check --base origin/main --fail-on new,worsened,unmatched; gitleaks on the branch commit~/.pickforge/investigations/443/pickcheck.jsonReview
Sol, round 1 at 0382594: 9/10, no findings. It compared fontdb 0.24's vendored parser with
ttf-parser0.25.1 (no unsafe code, no new dependency) and confirmed Linux discovery, fontconfig handling and memory mapping are unchanged. The face dumps prove equal behavior for this host's 903 faces, not for every possible font; coverage still uses the unchanged swash code.