dust: add noto-fonts

This commit is contained in:
Guanran Wang 2024-08-15 23:32:56 +08:00
parent 16898eaa7c
commit b5b4208b30
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -71,13 +71,6 @@
runHook postInstall runHook postInstall
''; '';
}) })
(source-sans.overrideAttrs {
installPhase = ''
runHook preInstall
install -Dm444 VF/*.otf -t $out/share/fonts/variable
runHook postInstall
'';
})
(source-serif.overrideAttrs { (source-serif.overrideAttrs {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -87,29 +80,44 @@
}) })
source-han-sans-vf-otf source-han-sans-vf-otf
source-han-serif-vf-otf source-han-serif-vf-otf
noto-fonts
noto-fonts-color-emoji noto-fonts-color-emoji
]; ];
fontconfig.defaultFonts = { fontconfig = {
emoji = [ defaultFonts = {
"Noto Color Emoji" emoji = [
]; "Noto Color Emoji"
# Append emoji font for Qt apps, they might use the monochrome emoji ];
monospace = [ # Append emoji font for Qt apps, they might use the monochrome emoji
"JetBrains Mono" monospace = [
"Source Han Sans SC VF" "JetBrains Mono"
"Symbols Nerd Font" "Source Han Sans SC VF"
"Noto Color Emoji" "Symbols Nerd Font"
]; "Noto Color Emoji"
sansSerif = [ ];
"Inter Variable" sansSerif = [
"Source Han Sans SC VF" "Inter Variable"
"Noto Color Emoji" "Source Han Sans SC VF"
]; "Noto Color Emoji"
serif = [ ];
"Source Serif 4 Variable" serif = [
"Source Han Serif SC VF" "Source Serif 4 Variable"
"Noto Color Emoji" "Source Han Serif SC VF"
]; "Noto Color Emoji"
];
};
# GitHub perfers Noto Sans...
localConf = ''
<selectfont>
<rejectfont>
<pattern>
<patelt name="family">
<string>Noto Sans</string>
</patelt>
</pattern>
</rejectfont>
</selectfont>
'';
}; };
}; };