arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Update GUI layout examples to use Liberation Serif

Open pushfoo opened this issue 6 months ago • 2 comments

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:

  1. Replace the last entry in the list "Liberation Sans"
  2. Replace the entire line with "Liberation Sans"

We load these by default as of https://github.com/pythonarcade/arcade/pull/2543.

pushfoo avatar Jun 30 '25 15:06 pushfoo

I am fine with "Liberation Sans" 🙏

eruvanos avatar Jul 05 '25 20:07 eruvanos

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

  1. Kenney fonts
  2. Liberation fonts
  3. 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.

eruvanos avatar Jul 30 '25 11:07 eruvanos