Skip to content

fontique: generic families (Fedora/KDE) #355

@dhardy

Description

@dhardy

Fontique does not correctly detect UI fonts on KDE 5:

GenericFamily::SystemUi:
Cantarell
Cantarell
Cantarell

GenericFamily::UiSerif:

GenericFamily::UiSansSerif:

GenericFamily::UiMonospace:

GenericFamily::UiRounded:

XDG_CONFIG_HOME is not set, while XDG_CONFIG_DIRS is, but does not point to any font configuration, so my best guess is that we must test XDG_CURRENT_DESKTOP=KDE(:.*)?, then parse $HOME/.config/kdeglobals.

Excerpt from the latter:

[General]
ColorSchemeHash=0be804dba87e3512aeb4be3d78ed981f59f0f2f4
XftHintStyle=hintslight
XftSubPixel=none
fixed=Noto Sans Mono,11,-1,5,50,0,0,0,0,0
font=Noto Sans,12,-1,5,50,0,0,0,0,0
menuFont=Noto Sans,12,-1,5,50,0,0,0,0,0
smallestReadableFont=Noto Sans,10,-1,5,50,0,0,0,0,0
toolBarFont=Noto Sans,12,-1,5,50,0,0,0,0,0

This is:

  • The family name
  • Size ("points", so presumably we just multiply by 96/72 = 4/3 to get dots-per-Em)
  • ... requires investigation

The hinting (none/slight/medium/full) & sub-pixel rendering (none, rgb, bgr, vrgb, vbgr) info is likely best ignored since (a) it is beyond the scope of Fontique and (b) is rasterer dependent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions