Skip to contents

Set and Get global configuration for {thaipdf} package. This setting will be applied to all templates from this package.

  • thaipdf_config_set() for setting thaipdf global configuration

  • thaipdf_config_get() for viewing thaipdf global configuration

Usage

thaipdf_config_set(thai_font = "TH Sarabun New", line_spacing = 1.5)

thaipdf_config_get()

Arguments

thai_font

(Character) Global Thai font to set for this package, must be a valid font in your machine.

line_spacing

(Numeric) Global spacing between each line. Line spacing 1.5 is recommended for Thai language (default).

Value

Display message to R console and return list of configurations (invisibly)

Details

For example, If you want use Thai font as "Laksaman" for all of your project, set thai_font = "Laksaman". Then, future templates created by this package will have "Laksaman" as main font.

Examples

if(FALSE){
# Set Global Thai font
thaipdf_config_set(thai_font = "Laksaman")
# View Settings
thaipdf_config_get()
}