Resolve Chinese font issue on AWS EC2
Record the step I used to resolve the font issue on AWS EC2
Download chinese ttf font
- Download
.ttf
chinese font. For example, DFLiYuanXBold1B. Remember to rename the file extension fromTTF
tottf
Install R package extrafont
install.packages('extrafont')
Import ttf font
library(extrafont)
font_import("<path to DFLIYX1B.ttf>")
Summary
I didn’t try it second times. Please let me know if it works or not.