Skip to content

delegate font resolution in ro_gt_theme/ro_dt_theme to ROvis.utils - #8

Merged
hypebright merged 2 commits into
developfrom
15-font-availability-message
Sep 16, 2026
Merged

hypebright merged 2 commits into
developfrom
15-font-availability-message

Conversation

@hypebright

@hypebright hypebright commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Both themes hardcoded their own font fallback instead of using ro_check_if_font_available()

ro_gt_theme keeps its ROfont opt-in gate: it always resolves through the RO font chain, downgrades to
Verdana only if ROfont=FALSE and RO happens to be installed, and stays quiet about it unless ROfont=TRUE.

Also drops the now-unused systemfonts dependency from both the package imports and DESCRIPTION, and adds a
test file for ro_dt_theme (none existed) plus fallback tests for ro_gt_theme.

Closes #9

Note wrong branch name (15 instead of 9, oopsie)

@Sjonnie404 Sjonnie404 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


tests:
`══ Results ═════════════════════════════════════════════════════
Duration: 1.8 s

[ FAIL 0 | WARN 0 | SKIP 0 | PASS 10 ]`

Check:
`── R CMD check results ────────────────── ROvis.table 0.1.0 ────
Duration: 1m 0.9s

❯ checking top-level files ... NOTE
Non-standard file/directory found at top level:
‘CONTRIBUTORS.md’

0 errors ✔ | 0 warnings ✔ | 1 note ✖

R CMD check succeeded`

@hypebright
hypebright merged commit a8b3c29 into develop Sep 16, 2026
@hypebright
hypebright deleted the 15-font-availability-message branch September 16, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove hard-coded font assignment and use ro_check_font_available + inconsistent font fallback

3 participants