yixuan / sysfonts

Loading Fonts into R
24 stars 11 forks source link

Adding additional font faces #16

Open gacolitti opened 3 years ago

gacolitti commented 3 years ago

My company font family includes a font face called 'Book', but font_add() does not support this font face. Does it make sense to support arbitrary font face names in font_add()? Or is there a workaround you are aware of that will allow me to add additional font faces?

yixuan commented 3 years ago

Hi @gacolitti, sorry for the (very) late reply. The R graphics system only allows you to specify font faces among regular, bold, italic, and bolditalic, so to use "Book" you need to map it to one of the existing font faces.