savoryink / setfont

Set the font of your favorite editors and terminals
MIT License
0 stars 2 forks source link

Add function for finding the default system font #59

Open Hermitter opened 4 years ago

Hermitter commented 4 years ago

If a user doesn't specify a font, it's good to have a fallback. Some apps won't allow you to edit font properties without specifying a font-name.

For example, Tilix (#11) requires both a font-name and font-size to be set in the same setting. Although the default is Monospace, that font is not guranteed to be installed.

<!--snippet from Tilix config-->
    <key name="font" type="s">
      <default>'Monospace 12'</default>
      <summary>A Pango font name and size</summary>
    </key>