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

What is the text family? #50

Open
GabriellaS-K opened this issue Sep 24, 2021 · 2 comments
Open

What is the text family? #50

GabriellaS-K opened this issue Sep 24, 2021 · 2 comments

Comments

@GabriellaS-K
Copy link

Hi,

Thank you for a brilliant package! Have used it for my plots but there is one that it isn't compatible with, so I'm adjusting a few things so that graph isn't the odd one out. I found info about the colours for my chosen theme ("flat") in your documents, but I can't find what the text font is, is this something you can tell me?
Thanks!

@Matt-Int
Copy link
Contributor

Hey not sure which is the base fonts in these themes, but you should be able to add your own theme(text = element_text(family = "fonthere") which should work.

@Matt-Int
Copy link
Contributor

Just tested it, and on linux the following bit works:

library(ggthemr)
ggthemr("flat")

ggplot(mtcars, aes(factor(vs), mpg, fill = factor(am))) + 
geom_col() +
theme(text = element_text(family = "Fira Code"))

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

2 participants