mirror of
https://github.com/i-tu/Hasklig.git
synced 2024-09-17 13:37:21 +03:00
When building the fonts using included build script, create artifacts outside of the main source tree.
This commit is contained in:
parent
744355929f
commit
dabf359b48
18
build.sh
18
build.sh
@ -1,13 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Build OTFs
|
family=SourceCodePro
|
||||||
for f in $(find . -name 'font.pfa')
|
weights=('Black' 'Bold' 'ExtraLight' 'Light' 'Regular' 'Semibold')
|
||||||
do
|
|
||||||
makeotf -f $f -r
|
|
||||||
done
|
|
||||||
|
|
||||||
# Build TTFs
|
# clean existing build artifacts
|
||||||
for f in $(find . -name 'font.ttf')
|
rm -rf target/
|
||||||
|
mkdir target/
|
||||||
|
|
||||||
|
for w in ${weights[@]};
|
||||||
do
|
do
|
||||||
makeotf -f $f -gf GlyphOrderAndAliasDB_TT -newNameID4 -r
|
makeotf -sp target/$family-$w-otf.fpr -f Roman/$w/font.pfa -r -o target/$family-$w.otf
|
||||||
|
makeotf -sp target/$family-$w-ttf.fpr -f Roman/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -newNameID4 -r -o target/$family-$w.ttf
|
||||||
|
rm Roman/$w/current.fpr # remove default options file from the source tree after building
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user