Module fonts

Module fonts 

Source
Expand description

Font resolution using freedesktop fontconfig

Resolves font family names to file paths using the system’s fontconfig. Integrates with COSMIC’s font configuration and user preferences.

Structs§

ResolvedFont
Font resolution result

Functions§

fontconfig_available
Check if fontconfig is available and has fonts
resolve_font
Resolve a font family name to a file path using fontconfig
resolve_font_with_style
Resolve a font with a specific style (bold, italic, etc)
resolve_sans
Resolve the system’s default sans-serif font