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

Add optional fonts to themes #146

Open
hughjonesd opened this issue May 31, 2020 · 0 comments
Open

Add optional fonts to themes #146

hughjonesd opened this issue May 31, 2020 · 0 comments

Comments

@hughjonesd
Copy link
Owner

Themes often look better with certain fonts, but they may not be installed, or work without fontspec in TeX.

One solution is a general font argument to theme functions. This could give the table font,
and the default could be something like

if (getOption("huxtable.use_fontspec", TRUE)) "A Nice Font" else NULL

where NULL would mean, don't set a font. That could be hidden by a simple helper function...
font_if_available().

Which raises the issue, how do we know what fonts the user has installed? Is there an R package to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant