Open Animaly0 opened 3 months ago
Are those Microsoft contacts unfree like corefonts?
I'm unsure what Microsoft contacts means but the ms-font is unfree for sure yeah. I don't they would be a good choice, I just made a quick fix with my current limited skillset
Describe the bug
fonts.enableDefaultPackages
does not include Fantasy fonts or Cursive Fonts for the web even if fontconfig have them defined. This means that if a website use the css argumentsfont-family: fantasy;
orfont-family: cursive;
without importing a font, they will fallback to Sans-serif.Steps To Reproduce
Steps to reproduce the behavior:
fonts.enableDefaultPackages = true;
on a system without any custom fontsfc-match fantasy
orfc-match cursive
to see what font is used 2.bis Visit this codepen or whatever website website using these font-familyExpected behavior
fonts.enableDefaultPackages
should install any of aliases fonts defined by fontconfig. For fantasy, those are Bauhaus Std, Cooper Std, Copperlate Gothic Std, Impact. For cursive, those are Comic Sans MS, Zapf Chancery Std, Zapfino.OR
change the fontconfig aliases for the fantasy and cursive faces with custom added fonts
Screenshots
codepen without the fonts
codepen with the ms-fonts
![font-familyNixOS24 05_fixed](https://github.com/NixOS/nixpkgs/assets/52257781/7b893c67-0cfb-4e1b-95a9-d0aea9b26c0d)
Additional context
I found the fonts asked by fontconfig at
/usr/share/fontconfig/conf.avail/45-latin.conf
in the current nixos derivationNotify maintainers
@SuperSandro2000 @nbraud
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.