TextTextureRenderer has special logic to "detect" system fonts, but it only covers serif and sans-serif. Otherwise double quotes are added around the font name and this prevents using other system fonts.
This is limiting as a few other system fonts could be useful occasionally, in particular to render subtitles without including webfonts:
TextTextureRenderer
has special logic to "detect" system fonts, but it only coversserif
andsans-serif
. Otherwise double quotes are added around the font name and this prevents using other system fonts.This is limiting as a few other system fonts could be useful occasionally, in particular to render subtitles without including webfonts:
https://developer.mozilla.org/en-US/docs/Web/CSS/font-family