home/fonts: perfer source-{sans,serif} over noto-{sans,serif}
This commit is contained in:
parent
9c74f706e5
commit
cd183f00bd
2 changed files with 19 additions and 13 deletions
|
@ -36,19 +36,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# HM managed fonts
|
# HM managed fonts
|
||||||
#
|
|
||||||
# The reason I use Source Han instead of Noto CJK,
|
|
||||||
# is because I heard from #archlinux-cn, Adobe packages font better.
|
|
||||||
# You can 100% use noto-fonts-cjk-{sans,serif} if you prefer consistency/other reason.
|
|
||||||
#
|
|
||||||
# Using VF to reduce closure size:
|
|
||||||
# Version 1579 -> 1580:
|
|
||||||
# home-manager: -10.4 KiB
|
|
||||||
# inter: -12695.6 KiB
|
|
||||||
# jetbrains-mono: -7621.0 KiB
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
|
(nerdfonts.override {
|
||||||
|
fonts = ["NerdFontsSymbolsOnly"];
|
||||||
|
})
|
||||||
(inter.overrideAttrs {
|
(inter.overrideAttrs {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -63,9 +55,22 @@
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
noto-fonts
|
(source-sans.overrideAttrs {
|
||||||
noto-fonts-color-emoji
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -Dm444 VF/*.otf -t $out/share/fonts/variable
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
(source-serif.overrideAttrs {
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -Dm444 VAR/*.otf -t $out/share/fonts/variable
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
})
|
||||||
source-han-sans-vf-otf
|
source-han-sans-vf-otf
|
||||||
source-han-serif-vf-otf
|
source-han-serif-vf-otf
|
||||||
|
noto-fonts-color-emoji
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
<alias binding="strong">
|
<alias binding="strong">
|
||||||
<family>serif</family>
|
<family>serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
|
<family>Source Serif 4 Variable</family>
|
||||||
<family>Source Han Serif SC VF</family>
|
<family>Source Han Serif SC VF</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
|
|
Loading…
Reference in a new issue