There is also something about embedding and stuff. Geom_text(aes(label=y),nudge_x=0.5,family="Roboto")+Įxporting raster images should work too. Ggplot has base_family which needs to be changed and family argument for text geoms. Once imported, it is available within R from then on. Writing Fontmap to C:/R/R-3.5.1/library/extrafontdb/fontmap/Fontmap. Writing font table in C:/R/R-3.5.1/library/extrafontdb/fontmap/fonttable.csv Scanning afm files in C:/R/R-3.5.1/library/extrafontdb/metrics
with high density screens (most users) who prefer the MingLiU font in official Android colors.
Ĭ:\Windows\Fonts\Roboto-Black.ttf => C:/R/R-3.5.1/library/extrafontdb/metrics/Roboto-BlackĬ:\Windows\Fonts\Roboto-BlackItalic.ttf => C:/R/R-3.5.1/library/extrafontdb/metrics/Roboto-BlackItalicĬ:\Windows\Fonts\RobotoCondensed-Regular.ttf => C:/R/R-3.5.1/library/extrafontdb/metrics/RobotoCondensed-Regular Free Download and Install BN Pro MingLiU HD Text For PC. > font_import(pattern="Roboto",prompt=FALSE) If this works, then this step will add those fonts to the extrafontdb.
Then open R, load extrafont package and import the font that you installed. Test if the font works by checking in any regular program like MS Word or something. Is there a way to download these custom fonts for R to use in ggplot, even though they aren't included in extrafonts? And if not, does anybody know if any of these fonts are particularly similar to National 2 Condensed and National 2?įirst you get the font you want and install it on your system. However I need to use National 2 Condensed, and National ( ). "Webdings" "Wingdings" "Wingdings 2" "Wingdings 3" "Times New Roman" "Trattatello" "Trebuchet MS" "Tw Cen MT" "Verdana" "PMingLiU-ExtB" "SimHei" "SimSun" "SimSun-ExtB" "Tahoma" "MS Reference Sans Serif" "MS Reference Specialty" "Palatino Linotype" "Perpetua" "PMingLiU" "Mongolian Baiti" "MS Gothic" "MS Mincho" "MS PGothic" "MS PMincho" "Microsoft Tai Le" "MingLiU_HKSCS-ExtB" "MingLiU_HKSCS" "MingLiU" "MingLiU-ExtB" "Marlett" "Meiryo" "Microsoft Yi Baiti" "Microsoft Himalaya" "Microsoft Sans Serif" Then select MingLiu font for both the Variable and fixed width fonts. For the Encoding, Select Traditional Chinese. "Khmer Sangam MN" "Lao Sangam MN" "Lucida Console" "Lucida Sans Unicode" "Luminari" Browser Chinese Font Setting The Chinese font setting in a browser varies with its type and version as follows: Netscape 4.0 and up Click Edit->preference->font. "Gabriola" "Georgia" "Gill Sans MT" "Gulim" "Impact" "Courier New" "DIN Alternate" "DIN Condensed" "Franklin Gothic Book" "Franklin Gothic Medium" "Candara" "Comic Sans MS" "Consolas" "Constantia" "Corbel" "Brush Script MT" "Calibri" "Calibri Light" "Cambria" "Cambria Math" "Batang" "Bodoni Ornaments" "Bodoni 72 Smallcaps" "Bookshelf Symbol 7" "" "Arial Black" "Arial" "Arial Narrow" "Arial Rounded MT Bold" "Arial Unicode MS"
After installing R's extrafonts library, and checking what fonts it had to offer, it came up with this list: ".Keyboard" "System Font" "Andale Mono" "Apple Braille" "AppleMyungjo"