source_han: Meta-information for the Source Han Sans/Serif Fonts

Description Usage Arguments Author(s) Examples

Description

These functions provide information of the Source Han Sans/Serif fonts that can be used in the font_install() function. Source Han Sans/Serif fonts provide complete support for the CJK (Chinese, Japanese, and Korean) characters.

Usage

1
2
3
source_han_sans(lang = c("CN", "TW", "JP", "KR"))

source_han_serif(lang = c("CN", "TW", "JP", "KR"))

Arguments

lang

Language of the font. "CN" for simplified Chinese, "TW" for traditional Chinese, "JP" for Japanese, and "KR" for Korean.

Author(s)

Yixuan Qiu <http://statr.me/>

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## Install Source Han Sans font (by default Simplified Chinese)
## to the showtexdb package
font_install(source_han_sans())

## Source Han Serif Japanese
font_install(source_han_serif("JP"))

## End(Not run)

showtextdb documentation built on May 2, 2019, 1:07 p.m.