Modified font

This commit is contained in:
Jan-Bulthuis 2025-02-11 19:31:06 +01:00
parent 4400dc070f
commit f9bf846c72
1 changed files with 2 additions and 15 deletions

View File

@ -13,29 +13,16 @@ pkgs.stdenv.mkDerivation {
buildInputs = with pkgs; [
dina-font
# ttf2psf
bdf2psf
# kbd
];
# buildPhase = ''
# # Get the base Dina otb font
# cp ${pkgs.dina-font}/share/fonts/misc/DinaMedium9.otb ./dina.otb
# # Create the character set
# cp ${pkgs.ttf2psf}/share/ttf2psf/ascii
# # Convert to psfu
# ttf2psu -g -c ${pkgs.ttf2psf}/share/ttf2psf/ -e ${pkgs.ttf2psf}/share/ttf2psf/standard.equivalents dina.otb dina.psfu.gz
# '';
buildPhase = ''
# Get the base Dina font
cp ${pkgs.dina-font.bdf}/share/fonts/misc/Dina_r400-10.bdf ./dina.bdf
cp ${pkgs.dina-font.bdf}/share/fonts/misc/Dina_r400-9.bdf ./dina.bdf
# Set the AVERAGE_WIDTH property on the font
sed 's/STARTPROPERTIES 16/STARTPROPERTIES 17\
AVERAGE_WIDTH 80/' ./dina.bdf > ./dina-mod.bdf
AVERAGE_WIDTH 70/' ./dina.bdf > ./dina-mod.bdf
# Convert the bdf to psf
bdf2psf --fb ./dina-mod.bdf \