theRealProHacker / Positron

With Positron you can create your own desktop app using just HTML and Python
2 stars 1 forks source link

Handle automatic Font Selection #28

Closed theRealProHacker closed 1 year ago

theRealProHacker commented 2 years ago

We need some kind of mapping from generic css font-families like sans-serif or fantasy to hardware fonts installed on the machine
Also we need a font-selection algorithm that takes a list of specifiers and spits out an "infinite" list of fonts. The algorithm should be doing following things:

  1. Find all OS fonts
  2. Select them depending on font-family, font-style, font-weight and maybe more

To implement this, it might not be sufficient to use pygame.

theRealProHacker commented 1 year ago

~fc-list or fc-match could help to accomplish this task~ (These are executables from tex)

theRealProHacker commented 1 year ago

Will be tracked in #87