Skip to content
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

Font family supplied via theme(text = ...) is not honored in plot headings #40

Open
nbenn opened this issue May 12, 2022 · 0 comments
Open

Comments

@nbenn
Copy link

nbenn commented May 12, 2022

When supplying a custom font via theme(text = element_text(family = ...)), this is picked up in some places, i.e.

family <- if (is.na(theme$text$family) || theme$text$family == "") "sans" else theme$text$family

but in other places, this is ignored, i.e.

geom_text(aes(x, y, label = label, hjust = hjust, fontface = fontface),
filter(forest_text, parse == parse_type),
na.rm = TRUE, parse = parse_type,
size = format_options$text_size
)

My issue goes away, when I patch through family = theme$text$family to the aes() call in line 414.

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

No branches or pull requests

1 participant