I'm unsure whether this would work in all output formats, but it would be good to not have to set the font-family explicitly for flextable and instead just inherit directly from the css/styling outside of the flextable.
I propose, that either, one sets the font.family to "" (or NA) and then in runs_as_functions.R change:
|
family <- sprintf("font-family:'%s';", x$font.family) |
to simply detect if it's "", e.g.:
family <- ""
if (x$font.family != "") {
family <- sprintf("font-family:'%s';", x$font.family)
}
or for NA:
family <- ""
if (!is.na(x$font.family) {
family <- sprintf("font-family:'%s';", x$font.family)
}
AFAIC The font-family should then simply be inherited from the rest of the document.
I'm unsure whether this would work in all output formats, but it would be good to not have to set the font-family explicitly for flextable and instead just inherit directly from the css/styling outside of the flextable.
I propose, that either, one sets the
font.familyto""(orNA) and then inruns_as_functions.Rchange:flextable/R/runs_as_functions.R
Line 10 in 39d8214
to simply detect if it's
"", e.g.:or for
NA:AFAIC The font-family should then simply be inherited from the rest of the document.