tangled
alpha
login
or
join now
oppi.li
/
scientifica
16
fork
atom
tall, condensed bitmap font for geeks
16
fork
atom
overview
issues
pulls
pipelines
close #55, #51
oppi.li
4 years ago
3bad67b2
fd8484a6
+98
-8
4 changed files
expand all
collapse all
unified
split
flake.nix
src
scientifica.sfd
scientificaBold.sfd
scientificaItalic.sfd
+90
flake.nix
···
1
1
+
{
2
2
+
description = "Scientifica: tall and condensed bitmap font for geeks";
3
3
+
4
4
+
inputs = {
5
5
+
6
6
+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05";
7
7
+
8
8
+
bitsnpicas-src = {
9
9
+
url = "github:kreativekorp/bitsnpicas";
10
10
+
flake = false;
11
11
+
};
12
12
+
13
13
+
};
14
14
+
15
15
+
outputs =
16
16
+
{ self
17
17
+
, nixpkgs
18
18
+
, bitsnpicas-src
19
19
+
, ...
20
20
+
}:
21
21
+
let
22
22
+
supportedSystems = [ "x86_64-linux" "x86_64-darwin" ];
23
23
+
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
24
24
+
25
25
+
nixpkgsFor = forAllSystems (system:
26
26
+
import nixpkgs {
27
27
+
inherit system;
28
28
+
overlays = [ self.overlay ];
29
29
+
});
30
30
+
in
31
31
+
{
32
32
+
33
33
+
overlay = final: prev: rec {
34
34
+
35
35
+
bitsnpicas = with final; pkgs.writeScriptBin "bitsnpicas" ''
36
36
+
${jdk}/bin/java -jar ${bitsnpicas-src}/downloads/BitsNPicas.jar
37
37
+
'';
38
38
+
39
39
+
scientifica = with final; pkgs.stdenvNoCC.mkDerivation {
40
40
+
pname = "scientifica";
41
41
+
version = "v2.3";
42
42
+
src = ./.;
43
43
+
44
44
+
buildPhase = ''
45
45
+
runHook preBuild
46
46
+
47
47
+
fontforge=${pkgs.fontforge}/bin/fontforge
48
48
+
bitsnpicas=${self.packages.bitsnpicas}/bin/bitsnpicas
49
49
+
50
50
+
ff_filter() {
51
51
+
fontforge -c 'open(argv[1]).generate(argv[2])' "$@"
52
52
+
}
53
53
+
54
54
+
ttf_filter() {
55
55
+
bitsnpicas convertbitmap -f ttf -o "$2" "$1"
56
56
+
}
57
57
+
58
58
+
mkdir -p $out/{ttf,otb,bdf}
59
59
+
60
60
+
pushd $src
61
61
+
62
62
+
# generate font files
63
63
+
for i in *; do
64
64
+
local file_name
65
65
+
file_name="''${i%.*}"
66
66
+
ttf_filter "$i" "$out/ttf/$file_name.ttf"
67
67
+
ff_filter "$i" "$out/otb/$file_name.otb"
68
68
+
ff_filter "$i" "$out/bdf/$file_name.bdf"
69
69
+
done
70
70
+
71
71
+
# copy ligature plugins
72
72
+
cp -r $src/ligature_plugins $out/ligature_plugins
73
73
+
74
74
+
popd
75
75
+
76
76
+
runHook postBuild
77
77
+
'';
78
78
+
79
79
+
};
80
80
+
81
81
+
};
82
82
+
83
83
+
packages = forAllSystems (system: {
84
84
+
inherit (nixpkgsFor."${system}") scientifica bitsnpicas;
85
85
+
});
86
86
+
87
87
+
defaultPackage = forAllSystems (system: self.packages."${system}".scientifica);
88
88
+
89
89
+
};
90
90
+
}
+5
-5
src/scientifica.sfd
···
1835
1835
1836
1836
StartChar: gbreve
1837
1837
Encoding: 287 287 222
1838
1838
-
Width: 1000
1838
1838
+
Width: 454
1839
1839
VWidth: 0
1840
1840
Flags: W
1841
1841
LayerCount: 2
···
2339
2339
2340
2340
StartChar: Scedilla
2341
2341
Encoding: 350 350 285
2342
2342
-
Width: 1000
2342
2342
+
Width: 454
2343
2343
VWidth: 0
2344
2344
Flags: W
2345
2345
LayerCount: 2
···
9077
9077
BDFChar: 155 220 5 0 3 0 8
9078
9078
O8tB(OH>QcDu]k<
9079
9079
BDFChar: 156 221 5 0 3 0 8
9080
9080
-
+@)$MODkbm?iU0,
9080
9080
+
+@)$MODkbmDu]k<
9081
9081
BDFChar: 157 222 5 0 3 0 6
9082
9082
JDcNNOPkWh
9083
9083
BDFChar: 158 223 5 0 3 -1 5
···
9208
9208
+A`&WOH>QC&7>J<
9209
9209
BDFChar: 221 286 5 0 3 0 8
9210
9210
OC2IXJ:Okc?iU0,
9211
9211
-
BDFChar: 222 287 11 0 3 -2 7
9211
9211
+
BDFChar: 222 287 5 0 3 -2 7
9212
9212
OC/'-OH>QC&7>J<
9213
9213
BDFChar: 223 288 5 0 3 0 8
9214
9214
5QG2RJ:Okc?iU0,
···
9334
9334
+AcI-J7&qM?iU0,
9335
9335
BDFChar: 284 349 11 0 3 0 7
9336
9336
+A`&WJ7&rH
9337
9337
-
BDFChar: 285 350 11 0 3 -2 6
9337
9337
+
BDFChar: 285 350 5 0 3 -2 6
9338
9338
@$#nH&<L9B?iU0,
9339
9339
BDFChar: 286 351 5 0 3 -2 4
9340
9340
E.D=-i#lD-
+2
-2
src/scientificaBold.sfd
···
51
51
DisplaySize: 11
52
52
AntiAlias: 1
53
53
FitToEm: 0
54
54
-
WinInfo: 0 58 15
54
54
+
WinInfo: 58 58 15
55
55
OnlyBitmaps: 1
56
56
BeginPrivate: 0
57
57
EndPrivate
···
8260
8260
BDFChar: 155 220 5 0 3 0 8
8261
8261
O8tB(OH>QcDu]k<
8262
8262
BDFChar: 156 221 5 0 3 0 8
8263
8263
-
+@)$MODkbm?iU0,
8263
8263
+
+@)$MODkbmDu]k<
8264
8264
BDFChar: 157 222 5 0 3 0 6
8265
8265
JDcNNOPkWh
8266
8266
BDFChar: 158 223 5 0 3 -1 5
+1
-1
src/scientificaItalic.sfd
···
7942
7942
BDFChar: 158 220 5 0 3 0 8
7943
7943
O8tB(OH>QcDu]k<
7944
7944
BDFChar: 159 221 5 0 3 0 8
7945
7945
-
+@)$MODkbm?iU0,
7945
7945
+
+@)$MODkbmDu]k<
7946
7946
BDFChar: 160 222 5 0 3 0 6
7947
7947
JDcNNOPkWh
7948
7948
BDFChar: 161 223 5 0 3 -1 5