20 url = "https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61";
21 hash = "sha256-JK+vnOyhAbwT825S+WKbQuWgRrfZZHfyhaMQ/6ljO8s=";
38 test "''${name:5:1}" = i && _it=Italic || _it=
40 400) _weight=Medium ;;
45 echo "Dina$_weight$_it$_pt"
48 # Re-encode the provided BDF files from CP1252 to Unicode as fonttosfnt does
49 # not support the former.
50 # We could generate the PCF and OTB files with fontforge directly, but that
51 # results in incorrect spacing in various places.
52 for f in BDF/*.bdf; do
53 basename=''${f##*/} basename=''${basename%.*}
54 fontforge -lang=ff -c "Open(\"$f\"); Reencode(\"win\", 1); Reencode(\"unicode\"); Generate(\"$basename.bdf\")"
55 mv "$basename"-*.bdf "$basename".bdf # remove the superfluous added size suffix
60 bdftopcf -t -o "$name.pcf" "$f"
61 fonttosfnt -v -o "$name.otb" "$f"
71 install -D -m 644 -t "$out/share/fonts/misc" *.pcf.gz *.otb
72 install -D -m 644 -t "$bdf/share/fonts/misc" *.bdf
73 mkfontdir "$out/share/fonts/misc"
74 mkfontdir "$bdf/share/fonts/misc"
80 description = "Monospace bitmap font aimed at programmers";
82 Dina is a monospace bitmap font, primarily aimed at programmers. It is
83 relatively compact to allow a lot of code on screen, while (hopefully)
84 clear enough to remain readable even at high resolutions.
86 homepage = "https://www.dcmembers.com/jibsen/download/61/";
87 license = licenses.free;
88 maintainers = with maintainers; [