Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
syne-typeface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
bonjour-monde
fonderie
syne-typeface
Commits
75ac678d
Commit
75ac678d
authored
4 years ago
by
Rosalie Wagner
Browse files
Options
Downloads
Patches
Plain Diff
Added build script for italic
parent
be7a65e0
No related branches found
No related tags found
1 merge request
!1
GF on boarding
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sources/build-italic.sh
+83
-0
83 additions, 0 deletions
sources/build-italic.sh
with
83 additions
and
0 deletions
sources/build-italic.sh
0 → 100755
+
83
−
0
View file @
75ac678d
#!/bin/sh
#===========================================================================
#Update this variable ==========================================================
thisFont
=
"Syne-Italic"
#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!
."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment