Description Usage Arguments Author(s) Examples
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.
1 2 3 | source_han_sans(lang = c("CN", "TW", "JP", "KR"))
source_han_serif(lang = c("CN", "TW", "JP", "KR"))
|
lang |
Language of the font. "CN" for simplified Chinese, "TW" for traditional Chinese, "JP" for Japanese, and "KR" for Korean. |
Yixuan Qiu <https://statr.me/>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.