rdkcentral / Lightning

Lightning - The WPE UI Framework for developing Apps and UX
Apache License 2.0
188 stars 109 forks source link

Unable to use `monospace` system font #537

Closed elsassph closed 3 months ago

elsassph commented 4 months ago

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:

font-family: serif;
font-family: sans-serif;
font-family: monospace;
font-family: cursive;
font-family: fantasy;

https://developer.mozilla.org/en-US/docs/Web/CSS/font-family

elsassph commented 3 months ago

Thanks @uguraslan - can you guys make sure this is also taken into account for Lightning 3?