-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have header font be part of theme specification #5886
Comments
Is the proposal here to do something like the following? theme_grey <- function(..., base_family = "", header_family = base_family) {
theme(
text = element_text(family = base_family),
title = element_text(family = header_family),
...
)
} |
Yes, exactly. I think subtitle and caption should inherit from the base font and title, axis title and guide title should inherit from the header font |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the theme constructors takes a base font argument to set the font for the titles/headers.
This ties into #5833 as we should also keep at least two fonts in the geom defaults inside themes
The text was updated successfully, but these errors were encountered: