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

Allow font.family to inherit from base document #674

Open
davidingerslev opened this issue Jan 26, 2025 · 0 comments
Open

Allow font.family to inherit from base document #674

davidingerslev opened this issue Jan 26, 2025 · 0 comments

Comments

@davidingerslev
Copy link

Hiya, your package is fantastic! It produces great tables easily and very compatible.

Would it be possible to allow font.family not to be specified, resulting in the table inheriting fonts from the base document?

I found setting the fonts a little tricky. I'm using R.nvim in a wsl2 ubuntu session inside of Windows, so maybe not a typical setup, but when knitting to html using flextable_to_rmd(), the tables displayed using default serif fonts. This was caused by DejaVu Sans not being available in Windows, I tried to remove the font.family setting but I couldn't find any way to do it, so I had to specify the font. That's fine in principle, but Word and html documents have different default fonts, so it means making adjustments if knitting to both.

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