Add Recursive variable font and automated canvas tests for font variants #4778
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 220 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.323
Real PR Conversation Timeline
1 comments
"Review active on #4778"
general
weight: 0.35
freakboy3742
<!--- Describe your changes in detail -->
This PR addresses #4480 by adding an example of a "true" variant font and automated canvas tests for font variants:
Recursive-VF.ttf) toexamples/font/font/resources/, registered it for normal, bold, italic, and bold-italic variants, and added labels displaying all 4 variants in the UI.Recursive-VF.ttfandRoboto-Regular.ttftotestbed/src/testbed/resources/fonts/.testbed/tests/widgets/canvas/test_canvas.pyfor each font family:-
test_endor_font_variants: Renders Endor in normal, bold, italic, and bold-italic.-
test_roboto_font_variants: Renders Roboto in normal, bold, italic, and bold-italic.-
test_recursive_font_variants: Renders Recursive in normal, bold, italic, and bold-italic.changes/4480.feature.md.<!--- What problem does this change solve? -->
As discussed in #2159 and requested in #4480, macOS and iOS do not render faux bold/italic for fonts like Endor that lack true variants, unlike GTK and Windows. This PR adds a true variable font to the fonts example and automated canvas tests verifying variant rendering for each font.
<!--- If this PR relates to an issue, include Refs #XXX or Fixes #XXX -->
Fixes #4480
PR Checklist:
<!--- Go over all the following points, and put an
xin all the boxes that apply. -->Assisted-by: ChatGPT