fonts.fontconfig.defaultFonts.cursive

man fonts-conf shows me these 13 generic families:

 serif           genericfamily   1
 sans-serif      genericfamily   2
 monospace       genericfamily   3
 cursive         genericfamily   4
 fantasy         genericfamily   5
 system-ui       genericfamily   6
 ui-serif        genericfamily   7
 ui-sans-serif   genericfamily   8
 ui-monospace    genericfamily   9
 ui-rounded      genericfamily   10
 emoji           genericfamily   11
 math            genericfamily   12
 fangsong        genericfamily   13

However, the fonts.fontconfig.defaultFonts option only has 3. I understand and respect that nixos is a professional distribution but is there still a way that I could add a list of fonts to map to cursive family?

1 Like

Well there’s 4, there’s also emoji.

I think the fontconfig files are difficult to override based on how the module is written, so I suggest sending a PR for the remaining families.

Or you can add a new config file via environment.etc."fonts/conf.d/whatever.conf", in this format

1 Like

I’m looking at that file, the defaults are mentioned to be DejaVu but the file doesn’t itself install DejaVu font in environment.systemPackages, that feels like an “anti-pattern”, so to speak?

Gemini tells me that “Ubuntu does not define a dedicated native cursive or fantasy typeface family, Instead, Fontconfig handles these generic CSS aliases by falling back to standard system fonts.”

Here’s my plan: add dancing script and mea culpa as default cursive and fantasy fonts, add them to system packages in the same file,

My GitHub has issues so I’ll have tol submit a diff here unless they are resolved. Will that work?