Skip to content

Commit

Permalink
Merge pull request #4 from m4rc1e/static-name
Browse files Browse the repository at this point in the history
Change static font family names
  • Loading branch information
m4rc1e authored Sep 11, 2019
2 parents 83e87a8 + bc5956c commit 71202c3
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 30 deletions.
26 changes: 12 additions & 14 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Clean up
rm ./fonts/ttf/BigShoulders*.ttf

# # Build static instances
mkdir -p ./fonts/ ./fonts/ttf/ ./fonts/vf
# Build static instances
fontmake -g ./source/Big\ Shoulders.glyphs -o ttf -i --output-dir ./fonts/ttf -a
for f in ./fonts/ttf/*.ttf
do
Expand All @@ -10,18 +8,18 @@ do
gftools fix-hinting $f
mv $f.fix $f
done

set -e
# Build variable font
fontmake -g ./source/Big\ Shoulders.glyphs -o variable --output-dir ./fonts/ttf
gftools fix-dsig --autofix ./fonts/ttf/BigShoulders-VF.ttf
ttfautohint ./fonts/ttf/BigShoulders-VF.ttf ./fonts/ttf/BigShoulders-VF-hinted.ttf
rm ./fonts/ttf/BigShoulders-VF.ttf
gftools fix-hinting ./fonts/ttf/BigShoulders-VF-hinted.ttf
mv ./fonts/ttf/BigShoulders-VF-hinted.ttf.fix ./fonts/ttf/BigShoulders[opsz,wght].ttf
rm ./fonts/ttf/BigShoulders-VF-hinted.ttf
VF_FILENAME="./fonts/vf/BigShoulder[opsz,wght].ttf"
fontmake -g ./source/Big\ Shoulders.glyphs -o variable --output-path $VF_FILENAME
gftools fix-dsig --autofix $VF_FILENAME
ttfautohint $VF_FILENAME $VF_FILENAME.fix
mv $VF_FILENAME.fix $VF_FILENAME
gftools fix-hinting $VF_FILENAME
mv $VF_FILENAME.fix $VF_FILENAME
# patch in name, fvar and STAT tables
ttx -m './fonts/ttf/BigShoulders[opsz,wght].ttf' ./source/patch.ttx
mv ./source/patch.ttf "./fonts/ttf/BigShoulders[opsz,wght].ttf"
ttx -m $VF_FILENAME ./source/patch.ttx
mv ./source/patch.ttf $VF_FILENAME

# Clean up
rm -r instance_ufo
Expand Down
Binary file removed fonts/ttf/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
32 changes: 16 additions & 16 deletions source/Big Shoulders.glyphs
Original file line number Diff line number Diff line change
Expand Up @@ -116099,7 +116099,7 @@ instances = (
customParameters = (
{
name = familyName;
value = "Big Shoulders 10pt";
value = "Big Shoulders Text";
}
);
interpolationWidth = 10;
Expand All @@ -116113,7 +116113,7 @@ weightClass = Thin;
customParameters = (
{
name = familyName;
value = "Big Shoulders 10pt";
value = "Big Shoulders Text";
}
);
interpolationCustom = 1;
Expand All @@ -116130,7 +116130,7 @@ weightClass = Light;
customParameters = (
{
name = familyName;
value = "Big Shoulders 10pt";
value = "Big Shoulders Text";
}
);
interpolationCustom = 4;
Expand All @@ -116146,7 +116146,7 @@ name = Regular;
customParameters = (
{
name = familyName;
value = "Big Shoulders 10pt";
value = "Big Shoulders Text";
}
);
interpolationCustom = 5;
Expand All @@ -116163,7 +116163,7 @@ weightClass = Medium;
customParameters = (
{
name = familyName;
value = "Big Shoulders 10pt";
value = "Big Shoulders Text";
}
);
interpolationCustom = 6;
Expand All @@ -116180,7 +116180,7 @@ weightClass = SemiBold;
customParameters = (
{
name = familyName;
value = "Big Shoulders 10pt";
value = "Big Shoulders Text";
}
);
interpolationCustom = 7;
Expand All @@ -116198,7 +116198,7 @@ weightClass = Bold;
customParameters = (
{
name = familyName;
value = "Big Shoulders 10pt";
value = "Big Shoulders Text";
}
);
interpolationCustom = 8;
Expand All @@ -116215,7 +116215,7 @@ weightClass = ExtraBold;
customParameters = (
{
name = familyName;
value = "Big Shoulders 10pt";
value = "Big Shoulders Text";
}
);
interpolationCustom = 9;
Expand All @@ -116231,7 +116231,7 @@ weightClass = Black;
customParameters = (
{
name = familyName;
value = "Big Shoulders 72pt";
value = "Big Shoulders Display";
}
);
interpolationCustom1 = 200;
Expand All @@ -116246,7 +116246,7 @@ weightClass = Thin;
customParameters = (
{
name = familyName;
value = "Big Shoulders 72pt";
value = "Big Shoulders Display";
}
);
interpolationCustom = 1;
Expand All @@ -116264,7 +116264,7 @@ weightClass = Light;
customParameters = (
{
name = familyName;
value = "Big Shoulders 72pt";
value = "Big Shoulders Display";
}
);
interpolationCustom = 4;
Expand All @@ -116281,7 +116281,7 @@ name = Regular;
customParameters = (
{
name = familyName;
value = "Big Shoulders 72pt";
value = "Big Shoulders Display";
}
);
interpolationCustom = 5;
Expand All @@ -116299,7 +116299,7 @@ weightClass = Medium;
customParameters = (
{
name = familyName;
value = "Big Shoulders 72pt";
value = "Big Shoulders Display";
}
);
interpolationCustom = 6;
Expand All @@ -116317,7 +116317,7 @@ weightClass = SemiBold;
customParameters = (
{
name = familyName;
value = "Big Shoulders 72pt";
value = "Big Shoulders Display";
}
);
interpolationCustom = 7;
Expand All @@ -116336,7 +116336,7 @@ weightClass = Bold;
customParameters = (
{
name = familyName;
value = "Big Shoulders 72pt";
value = "Big Shoulders Display";
}
);
interpolationCustom = 8;
Expand All @@ -116354,7 +116354,7 @@ weightClass = ExtraBold;
customParameters = (
{
name = familyName;
value = "Big Shoulders 72pt";
value = "Big Shoulders Display";
}
);
interpolationCustom = 9;
Expand Down

0 comments on commit 71202c3

Please sign in to comment.