Update GUI layout examples to use Liberation Serif
TL;DR: This chain of fallbacks looks like CSS and isn't guaranteed to resolve?
https://github.com/pythonarcade/arcade/blob/ce8db7b4f38a8ec477f2dc1c257c957116037f5d/arcade/examples/gui/1_layouts.py#L107
Proposed fix
Replace it with one of ways:
- Replace the last entry in the list
"Liberation Sans" - Replace the entire line with
"Liberation Sans"
We load these by default as of https://github.com/pythonarcade/arcade/pull/2543.
I am fine with "Liberation Sans" 🙏
So I took a look into this, the liberation fonts are not loaded by default right now. Also on high DPI monitors they get blurry (at least with font size ~12-14) :/
So maybe an option is:
provide a default font constant, which references to
- Kenney fonts
- Liberation fonts
- some default which is available everywhere -> following some internet sources this might be arial 🤷♂️
https://rawcdn.githack.com/dcog989/Default-fonts-per-OS/8f390fae502efe281056d53186278428d08f0c96/fonts-by-os-table.html
In case the fonts are loaded they are used, otherwise we have a proper fallback.