mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-05 17:17:34 +03:00
Fixed width issue #739
This commit is contained in:
parent
91760deff8
commit
40e6086adc
140
FiraCode.glyphs
140
FiraCode.glyphs
File diff suppressed because one or more lines are too long
@ -193,6 +193,8 @@ pip install gftools
|
|||||||
pip install fontmake
|
pip install fontmake
|
||||||
brew install ttfautohint
|
brew install ttfautohint
|
||||||
brew install woff2
|
brew install woff2
|
||||||
|
brew tap bramstein/webfonttools
|
||||||
|
brew install sfnt2woff-zopfli
|
||||||
```
|
```
|
||||||
|
|
||||||
Run `./build.sh`
|
Run `./build.sh`
|
||||||
|
18
build.sh
18
build.sh
@ -43,3 +43,21 @@ woff2s=$(ls distr/*/*.woff2)
|
|||||||
for woff2 in $woff2s; do
|
for woff2 in $woff2s; do
|
||||||
mv $woff2 distr/woff2/$(basename $woff2)
|
mv $woff2 distr/woff2/$(basename $woff2)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Build woff fonts ===========================================================
|
||||||
|
|
||||||
|
# requires sfnt2woff-zopfli (https://github.com/bramstein/homebrew-webfonttools)
|
||||||
|
|
||||||
|
rm -rf distr/woff
|
||||||
|
|
||||||
|
ttfs=$(ls distr/*/*.ttf)
|
||||||
|
for ttf in $ttfs; do
|
||||||
|
sfnt2woff-zopfli $ttf
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -p distr/woff
|
||||||
|
woffs=$(ls distr/*/*.woff)
|
||||||
|
for woff in $woffs; do
|
||||||
|
mv $woff distr/woff/$(basename $woff)
|
||||||
|
done
|
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.
Binary file not shown.
Binary file not shown.
@ -1,63 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
source venv/bin/activate
|
|
||||||
|
|
||||||
# variable font
|
|
||||||
fontmake -g FiraCode.glyphs -o variable --output-dir distr/variable_ttf
|
|
||||||
|
|
||||||
# statics
|
|
||||||
fontmake -g FiraCode.glyphs -o ttf --output-dir distr/ttf
|
|
||||||
fontmake -g FiraCode.glyphs -o otf --output-dir distr/otf
|
|
||||||
|
|
||||||
# ============================================================================
|
|
||||||
# Autohinting ================================================================
|
|
||||||
|
|
||||||
statics=$(ls distr/ttf/*.ttf)
|
|
||||||
for file in $statics; do
|
|
||||||
echo "fix DSIG in " ${file}
|
|
||||||
gftools fix-dsig --autofix ${file}
|
|
||||||
|
|
||||||
echo "TTFautohint " ${file}
|
|
||||||
# autohint with detailed info
|
|
||||||
hintedFile=${file/".ttf"/"-hinted.ttf"}
|
|
||||||
ttfautohint -I ${file} ${hintedFile} --stem-width-mode nnn
|
|
||||||
cp ${hintedFile} ${file}
|
|
||||||
rm -rf ${hintedFile}
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
# ============================================================================
|
|
||||||
# Build woff2 fonts ==========================================================
|
|
||||||
|
|
||||||
# requires https://github.com/google/woff2
|
|
||||||
|
|
||||||
rm -rf distr/woff2
|
|
||||||
|
|
||||||
ttfs=$(ls distr/*/*.ttf)
|
|
||||||
for ttf in $ttfs; do
|
|
||||||
woff2_compress $ttf
|
|
||||||
done
|
|
||||||
|
|
||||||
mkdir -p distr/woff2
|
|
||||||
woff2s=$(ls distr/*/*.woff2)
|
|
||||||
for woff2 in $woff2s; do
|
|
||||||
mv $woff2 distr/woff2/$(basename $woff2)
|
|
||||||
done
|
|
||||||
|
|
||||||
# ============================================================================
|
|
||||||
# Build woff fonts ===========================================================
|
|
||||||
|
|
||||||
# requires sfnt2woff-zopfli (https://github.com/bramstein/homebrew-webfonttools)
|
|
||||||
|
|
||||||
rm -rf distr/woff
|
|
||||||
|
|
||||||
ttfs=$(ls distr/*/*.ttf)
|
|
||||||
for ttf in $ttfs; do
|
|
||||||
sfnt2woff-zopfli $ttf
|
|
||||||
done
|
|
||||||
|
|
||||||
mkdir -p distr/woff
|
|
||||||
woffs=$(ls distr/*/*.woff)
|
|
||||||
for woff in $woffs; do
|
|
||||||
mv $woff distr/woff/$(basename $woff)
|
|
||||||
done
|
|
1
googlefonts-qa/scripts/build.sh
Symbolic link
1
googlefonts-qa/scripts/build.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../build.sh
|
Loading…
Reference in New Issue
Block a user