mixfonts | R Documentation |
Put ASCII font family character(s) and multibyte font family character(s) into a single string for use in ggplot.
mixfonts(strs, asciifont = "Arial", mbytefont = "MS Gothic")
strs |
A vector of character to be converted |
asciifont |
ASCII font family, Default: 'Arial' |
mbytefont |
Multi byte font family, Default: 'MS Gothic' |
This function is supposed to be used with ggtext::element_markdown()
and ggtext::geom_richtext()
. See vignette("mixfonts")
Character vector of HTML span tag.
label_mixfonts
element_markdown
geom_richtext
if(interactive()){
library(frabento)
register_all_fonts()
mixfonts(c("仔魚を含まない\n0歳魚", "1歳魚+"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.