Skip to content

Commit

Permalink
bump to v2.2
Browse files Browse the repository at this point in the history
 - fix excessive side bearings on few characters
 - fix U+019D hook to be on left side
 - fix erronous weight spec once and for all
 - update build scripts to work on nix
  • Loading branch information
oppiliappan committed Mar 7, 2021
1 parent 8cdde9d commit fd8484a
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 32 deletions.
7 changes: 4 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ in
with pkgs;
stdenv.mkDerivation rec {
name = "scientifica";
version = "v2.1";
version = "v2.2";
src = ./src;
buildInputs = [ fontforge python3 xorg.mkfontdir ];

buildPhase = ''
for i in ./*; do
fontforge -c 'open(argv[1]).generate(argv[2])' $i $i.otb
for i in *; do
p=''${i%%.*}
fontforge -c 'open(argv[1]).generate(argv[2])' $i "$p".otb
done
'';
installPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

with pkgs;
mkShell {
buildInputs = [ fontforge python3 xorg.mkfontdir ];
buildInputs = [ fontforge-gtk fontforge python3 xorg.mkfontdir adoptopenjdk-bin ];
}
29 changes: 19 additions & 10 deletions src/scientifica.sfd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FontName: scientifica
FullName: scientifica
FamilyName: scientifica
Weight: Medium
Copyright: Copyright (c) 2016, romeovs
Copyright: Copyright (c) 2021, Akshay Oppiliappan <[email protected]>
UComments: "2018-6-13: Created with FontForge (http://fontforge.org)"
Version: 001.000
ItalicAngle: 0
Expand All @@ -16,13 +16,18 @@ LayerCount: 2
Layer: 0 0 "Back" 1
Layer: 1 0 "Fore" 0
XUID: [1021 714 -1221848914 16334107]
StyleMap: 0x0000
StyleMap: 0x0040
FSType: 0
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1528931547
ModificationTime: 1586791767
ModificationTime: 315532800
PfmFamily: 49
TTFWeight: 500
TTFWidth: 5
LineGap: 90
VLineGap: 0
OS2TypoAscent: 0
OS2TypoAOffset: 1
OS2TypoDescent: 0
Expand All @@ -37,15 +42,19 @@ HheadAOffset: 1
HheadDescent: 0
HheadDOffset: 1
OS2Vendor: 'PfEd'
MarkAttachClasses: 1
DEI: 91125
LangName: 1033
Encoding: UnicodeBmp
UnicodeInterp: none
NameList: AGL For New Fonts
DisplaySize: 11
AntiAlias: 1
FitToEm: 0
WinInfo: 56712 68 18
WinInfo: 0 68 18
OnlyBitmaps: 1
BeginPrivate: 0
EndPrivate
BeginChars: 65536 1085

StartChar: space
Expand Down Expand Up @@ -1594,7 +1603,7 @@ EndChar

StartChar: Abreve
Encoding: 258 258 193
Width: 1000
Width: 454
VWidth: 0
Flags: W
LayerCount: 2
Expand Down Expand Up @@ -2834,7 +2843,7 @@ EndChar

StartChar: uni019D
Encoding: 413 413 348
Width: 1000
Width: 454
VWidth: 0
Flags: W
LayerCount: 2
Expand Down Expand Up @@ -8737,7 +8746,7 @@ FONTNAME_REGISTRY 16 ""
CHARSET_COLLECTIONS 16 "ASCII ISOLatin1Encoding ISO8859-2 ISO8859-9 ISO8859-4 Symbol ISO10646-1"
FONT_NAME 16 "scientifica"
FACE_NAME 16 "scientifica"
COPYRIGHT 16 "Copyright (c) 2016, romeovs"
COPYRIGHT 16 "Copyright (c) 2021, Akshay Oppiliappan <[email protected]>"
FONT_VERSION 16 "1.0.0"
FONT_ASCENT 18 9
FONT_DESCENT 18 2
Expand Down Expand Up @@ -9141,7 +9150,7 @@ BDFChar: 191 256 5 0 3 0 8
n,QjXORS?nO8o7\
BDFChar: 192 257 11 0 3 0 6
Duaj=OK_O]
BDFChar: 193 258 11 0 3 0 8
BDFChar: 193 258 5 0 3 0 8
OC2IXORS?nO8o7\
BDFChar: 194 259 5 0 3 0 7
OC/'-OH?\C
Expand Down Expand Up @@ -9451,8 +9460,8 @@ BDFChar: 346 411 11 0 3 0 6
:nSpR@$$HM
BDFChar: 347 412 11 0 3 0 6
OH>QcORS>3
BDFChar: 348 413 11 0 3 -2 6
OH@hnY`OqX?iU0,
BDFChar: 348 413 5 -1 3 -2 6
88)[==@btJJ,fQL
BDFChar: 349 414 11 0 3 -2 4
i/j%^O:Vs'
BDFChar: 350 415 11 0 3 0 5
Expand Down
26 changes: 18 additions & 8 deletions src/scientificaBold.sfd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FontName: scientificaBold
FullName: scientifica
FamilyName: scientifica
Weight: Bold
Copyright: Copyright (c) 2016, romeovs
Copyright: Copyright (c) 2021, Akshay Oppiliappan <[email protected]>
UComments: "2018-6-13: Created with FontForge (http://fontforge.org)"
Version: 001.000
ItalicAngle: 0
Expand All @@ -22,7 +22,12 @@ OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1528931301
ModificationTime: 1528931301
ModificationTime: 315532800
PfmFamily: 17
TTFWeight: 700
TTFWidth: 5
LineGap: 90
VLineGap: 0
OS2TypoAscent: 0
OS2TypoAOffset: 1
OS2TypoDescent: 0
Expand All @@ -37,15 +42,20 @@ HheadAOffset: 1
HheadDescent: 0
HheadDOffset: 1
OS2Vendor: 'PfEd'
MarkAttachClasses: 1
DEI: 91125
LangName: 1033
Encoding: UnicodeBmp
UnicodeInterp: none
NameList: AGL For New Fonts
DisplaySize: 11
AntiAlias: 1
FitToEm: 0
WinInfo: 9570 58 15
WinInfo: 0 58 15
OnlyBitmaps: 1
BeginPrivate: 0
EndPrivate
TeXData: 1 0 0 476054 238026 158684 0 1048576 158684 783286 444596 497025 792723 393216 433062 380633 303038 157286 324010 404750 52429 2506097 1059062 262144
BeginChars: 65536 982

StartChar: space
Expand Down Expand Up @@ -2834,7 +2844,7 @@ EndChar

StartChar: uni019D
Encoding: 413 413 348
Width: 1000
Width: 454
VWidth: 0
Flags: W
LayerCount: 2
Expand Down Expand Up @@ -7894,7 +7904,7 @@ Flags: W
LayerCount: 2
EndChar
EndChars
BitmapFont: 11 982 9 2 1 nerdypepper
BitmapFont: 11 983 9 2 1 nerdypepper
BDFStartProperties: 39
FONT 1 "-nerdypepper-scientifica-bold-r-normal--11-80-100-100-C-50-ISO10646-1"
SIZE 1 "11 75 75"
Expand All @@ -7919,7 +7929,7 @@ FONTNAME_REGISTRY 16 ""
CHARSET_COLLECTIONS 16 "ASCII ISOLatin1Encoding ISO8859-2 ISO8859-9 ISO8859-4 Symbol ISO10646-1"
FONT_NAME 16 "scientificaBold"
FACE_NAME 16 "scientifica"
COPYRIGHT 16 "Copyright (c) 2016, romeovs"
COPYRIGHT 16 "Copyright (c) 2021, Akshay Oppiliappan <[email protected]>"
FONT_VERSION 16 "1.0.0"
FONT_ASCENT 18 9
FONT_DESCENT 18 2
Expand Down Expand Up @@ -8633,8 +8643,8 @@ BDFChar: 346 411 11 0 3 0 6
:nSpR@$$HM
BDFChar: 347 412 11 0 3 0 6
OH>QcORS>3
BDFChar: 348 413 11 0 3 -2 6
OH@hnY`OqX?iU0,
BDFChar: 348 413 5 -1 3 -2 6
84[Dr=@btJJ,fQL
BDFChar: 349 414 11 0 3 -2 4
i/j%^O:Vs'
BDFChar: 350 415 11 0 3 0 5
Expand Down
20 changes: 10 additions & 10 deletions src/scientificaItalic.sfd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FontName: scientificaItalic
FullName: scientifica
FamilyName: scientifica
Weight: Italic
Copyright: Copyright (c) 2016, romeovs
Copyright: Copyright (c) 2021, Akshay Oppiliappan <[email protected]>
Version: 001.000
ItalicAngle: 0
UnderlinePosition: -49
Expand All @@ -16,14 +16,14 @@ LayerCount: 2
Layer: 0 0 "Back" 1
Layer: 1 0 "Fore" 0
XUID: [1021 552 -1923360401 8491390]
StyleMap: 0x0000
StyleMap: 0x0001
FSType: 0
OS2Version: 4
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1528752866
ModificationTime: 1586963935
PfmFamily: 17
ModificationTime: 315532800
PfmFamily: 49
TTFWeight: 500
TTFWidth: 5
LineGap: 90
Expand Down Expand Up @@ -1444,7 +1444,7 @@ EndChar

StartChar: Abreve
Encoding: 258 258 196
Width: 1000
Width: 454
Flags: W
LayerCount: 2
EndChar
Expand Down Expand Up @@ -2529,7 +2529,7 @@ EndChar

StartChar: uni019D
Encoding: 413 413 351
Width: 1000
Width: 454
Flags: W
LayerCount: 2
EndChar
Expand Down Expand Up @@ -7606,7 +7606,7 @@ FONTNAME_REGISTRY 16 ""
CHARSET_COLLECTIONS 16 "ASCII ISOLatin1Encoding ISO8859-2 ISO8859-9 ISO8859-4 Symbol ISO10646-1"
FONT_NAME 16 "scientificaItalic"
FACE_NAME 16 "scientifica"
COPYRIGHT 16 "Copyright (c) 2016, romeovs"
COPYRIGHT 16 "Copyright (c) 2021, Akshay Oppiliappan <[email protected]>"
FONT_VERSION 16 "1.0.0"
FONT_ASCENT 18 9
FONT_DESCENT 18 2
Expand Down Expand Up @@ -8015,7 +8015,7 @@ BDFChar: 194 256 5 0 3 0 8
n,QjXORS?nO8o7\
BDFChar: 195 257 11 0 3 0 6
Duaj=OK_O]
BDFChar: 196 258 11 0 3 0 8
BDFChar: 196 258 5 0 3 0 8
OC2IXORS?nO8o7\
BDFChar: 197 259 5 0 3 0 7
OC/'-OH?\C
Expand Down Expand Up @@ -8325,8 +8325,8 @@ BDFChar: 349 411 11 0 3 0 6
:nSpR@$$HM
BDFChar: 350 412 11 0 3 0 6
OH>QcORS>3
BDFChar: 351 413 11 0 3 -2 6
OH@hnY`OqX?iU0,
BDFChar: 351 413 5 -1 3 -2 6
84[Dr=@btJJ,fQL
BDFChar: 352 414 11 0 3 -2 4
i/j%^O:Vs'
BDFChar: 353 415 11 0 3 0 5
Expand Down

0 comments on commit fd8484a

Please sign in to comment.