feat(theme): add a showtext switch to civilytics_load_fonts() for ragg users (#29)
R-CMD-check / R CMD check (push) Successful in 5m7s
R-CMD-check / R CMD check (push) Successful in 5m7s
civilytics_load_fonts(showtext = getOption("civilytics.showtext", TRUE))
registers the brand fonts and only then turns on showtext, so ragg users can
opt out of its 96 dpi text sizing. The default is unchanged, so existing
reports render as before. The help page documents the ragg path.
Closes #29
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f3ec052144
commit
119aa7aa0f
5 files changed
+105
-16
No files matched your search
@@ -3,6 +3,9 @@
|
||||
## New features
|
||||
- `civilytics_logo()` and `add_logo()` gain `logo_height` (inches, default `0.5`),
|
||||
the height of a band reserved for the logo.
|
||||
- `civilytics_load_fonts()` gains `showtext` (default `getOption("civilytics.showtext", TRUE)`), so ragg
|
||||
users can register the brand fonts without turning on showtext, which draws text
|
||||
at a third of its size on a 300 dpi ragg device. The default is unchanged (#29).
|
||||
- `patchwork` is now a suggested package, used when a patchwork composition is
|
||||
passed to `civilytics_logo()`.
|
||||
- Added comprehensive test coverage for the `prop_conf` module, including
|
||||
|
||||
Reference in new issue
Block a user