From ee35ecfe03af23d8f28da863808f5c0ee7108e31 Mon Sep 17 00:00:00 2001 From: David Gohel Date: Sat, 13 Jan 2024 12:14:24 +0100 Subject: [PATCH] doc: add a note related to hansi.family fix #586 --- DESCRIPTION | 2 +- R/defaults.R | 4 +++- man/set_flextable_defaults.Rd | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index eaef1e6f..4c4bd66a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: flextable Type: Package Title: Functions for Tabular Reporting -Version: 0.9.5.006 +Version: 0.9.5.007 Authors@R: c( person("David", "Gohel", role = c("aut", "cre"), email = "david.gohel@ardata.fr"), diff --git a/R/defaults.R b/R/defaults.R index afe90e31..dfaf8f9d 100644 --- a/R/defaults.R +++ b/R/defaults.R @@ -49,7 +49,9 @@ flextable_global$defaults <- default_flextable_settings #' Use `set_flextable_defaults()` to override them. Use `init_flextable_defaults()` #' to re-init all values with the package defaults. #' @param font.family single character value. When format is Word, it specifies the font to -#' be used to format characters in the Unicode range (U+0000-U+007F). +#' be used to format characters in the Unicode range (U+0000-U+007F). If you +#' want to use non ascii characters in Word, you should also set `hansi.family` +#' to the same family name. #' @param cs.family optional and only for Word. Font to be used to format #' characters in a complex script Unicode range. For example, Arabic #' text might be displayed using the "Arial Unicode MS" font. diff --git a/man/set_flextable_defaults.Rd b/man/set_flextable_defaults.Rd index 71cc6a6a..9d341df4 100644 --- a/man/set_flextable_defaults.Rd +++ b/man/set_flextable_defaults.Rd @@ -52,7 +52,9 @@ init_flextable_defaults() } \arguments{ \item{font.family}{single character value. When format is Word, it specifies the font to -be used to format characters in the Unicode range (U+0000-U+007F).} +be used to format characters in the Unicode range (U+0000-U+007F). If you +want to use non ascii characters in Word, you should also set \code{hansi.family} +to the same family name.} \item{font.size}{font size (in point) - 0 or positive integer value.}