mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
Catalog::generic_family(Generic) returns the installed family to draw with when a caller has no family name, or the one it has is not installed. With the system feature it takes the first family the platform's font service lists for the generic family that the catalog has (fontconfig's configured aliases on Linux and FreeBSD). Otherwise it takes the first installed family of a fixed list for the catalog's platform, then of the other platforms' lists. SystemUi tries the platform's sans-serif families before the other platforms' lists. Names are looked up as resolve() looks them up, so a legacy family name finds its family, and added faces count. The fonts example prints the four answers.