Skip to content
Snippets Groups Projects
Commit 805f7aab authored by Lucas Descroix's avatar Lucas Descroix
Browse files

Merge branch 'master' into 'master'

Renamed Syne Italic into Syne Tactile and generated binaries

See merge request !3
parents 041be8dd b2861856
No related branches found
No related tags found
1 merge request!3Renamed Syne Italic into Syne Tactile and generated binaries
Showing with 35504 additions and 2 deletions
File added
File added
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff is collapsed.
......@@ -5,6 +5,7 @@
thisFont="Syne" #must match the name in the font file
thisFont2="SyneMono"
thisFont3="SyneTactile"
axis="wght"
#===========================================================================
......@@ -26,7 +27,7 @@ GENERATING STATIC TTF
."
mkdir -p ../fonts/ttf
fontmake -g $thisFont2.glyphs -i -o ttf --output-dir ../fonts/ttf/
fontmake -g $thisFont-Italic.glyphs -i -o ttf --output-dir ../fonts/ttf/
fontmake -g $thisFont3.glyphs -i -o ttf --output-dir ../fonts/ttf/
fontmake -g $thisFont.glyphs -i -o ttf --output-dir ../fonts/ttf/
echo ".
......@@ -34,7 +35,7 @@ GENERATING STATIC OTF
."
mkdir -p ../fonts/otf
fontmake -g $thisFont2.glyphs -i -o otf --output-dir ../fonts/otf/
fontmake -g $thisFont-Italic.glyphs -i -o otf --output-dir ../fonts/otf/
fontmake -g $thisFont3.glyphs -i -o otf --output-dir ../fonts/otf/
fontmake -g $thisFont.glyphs -i -o otf --output-dir ../fonts/otf/
#============================================================================
......
#!/bin/sh
#===========================================================================
#Update this variable ==========================================================
thisFont="SyneTactile" #must match the name in the font file
#===========================================================================
#Generating fonts ==========================================================
#source ../env/bin/activate
set -e
#echo "CLEAN FONTS FOLDERS"
#rm -rf ./fonts/ttf/ ./fonts/otf/ ./fonts/variable/ ./fonts/webfonts/
echo ".
GENERATING STATIC TTF
."
mkdir -p ../fonts/ttf
fontmake -g $thisFont.glyphs -i -o ttf --output-dir ../fonts/ttf/
echo ".
GENERATING STATIC OTF
."
mkdir -p ../fonts/otf
fontmake -g $thisFont.glyphs -i -o otf --output-dir ../fonts/otf/
#============================================================================
#Post-processing fonts ======================================================
echo ".
POST-PROCESSING TTF
."
ttfs=$(ls ../fonts/ttf/*.ttf)
echo $ttfs
for ttf in $ttfs
do
gftools fix-dsig --autofix $ttf
ttfautohint $ttf $ttf.fix
[ -f $ttf.fix ] && mv $ttf.fix $ttf
gftools fix-hinting $ttf
[ -f $ttf.fix ] && mv $ttf.fix $ttf
done
echo ".
POST-PROCESSING OTF
."
otfs=$(ls ../fonts/otf/*.otf)
for otf in $otfs
do
gftools fix-dsig --autofix $otf
gftools fix-weightclass $otf
[ -f $otf.fix ] && mv $otf.fix $otf
done
#============================================================================
#Build woff and woff2 fonts =================================================
#requires https://github.com/bramstein/homebrew-webfonttools
echo ".
BUILD WEBFONTS
."
mkdir -p ../fonts/webfonts
ttfs=$(ls ../fonts/ttf/*.ttf)
for ttf in $ttfs
do
woff2_compress $ttf
sfnt2woff-zopfli $ttf
done
woffs=$(ls ../fonts/ttf/*.woff*)
for woff in $woffs
do
mv $woff ../fonts/webfonts/
done
rm -rf master_ufo/ instance_ufo/
echo ".
COMPLETE!
."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment