switch to atkinson hyperlegible pro

This commit is contained in:
Jill 2024-03-17 02:13:42 +03:00
parent 66b3280955
commit 04a0387fd8
4 changed files with 35 additions and 7 deletions

View File

@ -33,7 +33,7 @@
history_length = 20
show_age_threshold = 60
markup = "full"
font = "Atkinson Hyperlegible 10"
font = "Atkinson Hyperlegible Pro 10"
word_wrap = "yes"
sort = "yes"
shrink = "no"

View File

@ -2,7 +2,7 @@ window {
/*background: @base;*/
background: alpha(@base, 0.3);
color: @text;
font-family: 'Atkinson Hyperlegible', FontAwesome, Noto Sans CJK;
font-family: 'Atkinson Hyperlegible Pro', 'Atkinson Hyperlegible', FontAwesome, Noto Sans CJK;
font-size: 14px;
font-style: normal;
}

View File

@ -31,13 +31,13 @@ in {
fonts = {
sans = mkFontOption "sans" {
package = pkgs.atkinson-hyperlegible;
family = "Atkinson Hyperlegible";
package = pkgs.my.atkinson-hyperlegible-pro;
family = "Atkinson Hyperlegible Pro";
size = 11;
};
sansSerif = mkFontOption "sans-serif" {
package = pkgs.atkinson-hyperlegible;
family = "Atkinson Hyperlegible";
package = pkgs.my.atkinson-hyperlegible-pro;
family = "Atkinson Hyperlegible Pro";
size = 11;
};
monospace = mkFontOption "monospace" {
@ -106,7 +106,7 @@ in {
twemoji-color-font
noto-fonts-color-emoji
noto-fonts-monochrome-emoji
#font-awesome
font-awesome
];
});
}

View File

@ -0,0 +1,28 @@
{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation {
pname = "atkinson-hyperlegible-pro";
version = "1.5.1-unstable";
src = fetchFromGitHub {
owner = "jacobxperez";
repo = "atkinson-hyperlegible-pro";
rev = "2576e71d09f57eac8d5e7d9d42b9e7ce49f759e1";
hash = lib.fakeHash;
};
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
runHook postInstall
'';
meta = with lib; {
description = "Maintained version of Atkinson Hyperlegible";
homepage = "https://jacobxperez.github.io/atkinson-hyperlegible-pro/";
license = licenses.ofl;
platforms = platforms.all;
};
}