kopia lustrzana https://github.com/tonsky/FiraCode
Fixed STAT table in FiraCode-VF.ttf (closes #1054)
rodzic
1471298321
commit
d41386567b
|
@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
|
||||||
- Vertically-aligned colons, greater/less signs #980 #1061
|
- Vertically-aligned colons, greater/less signs #980 #1061
|
||||||
- Make U+2388 Helm Symbol `⎈` single-width #1036
|
- Make U+2388 Helm Symbol `⎈` single-width #1036
|
||||||
- Disable `=/` because of conflicts with paths `PATH=/...` #1056
|
- Disable `=/` because of conflicts with paths `PATH=/...` #1056
|
||||||
|
- Fixed STAT table in FiraCode-VF.ttf #1054
|
||||||
|
|
||||||
#### 4.0 (May 18, 2020)
|
#### 4.0 (May 18, 2020)
|
||||||
|
|
||||||
|
|
Plik binarny nie jest wyświetlany.
18
script/build
18
script/build
|
@ -6,28 +6,24 @@ source venv/bin/activate
|
||||||
# VARIABLE FONT ==============================================================
|
# VARIABLE FONT ==============================================================
|
||||||
|
|
||||||
# variable font
|
# variable font
|
||||||
rm -rf distr/variable_ttf
|
|
||||||
fontmake -g FiraCode.glyphs -o variable --output-dir distr/variable_ttf
|
|
||||||
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
# fix variable font metadata as needed ------------------------
|
|
||||||
|
|
||||||
firaCodeVF=distr/variable_ttf/FiraCode-VF.ttf
|
firaCodeVF=distr/variable_ttf/FiraCode-VF.ttf
|
||||||
|
|
||||||
|
rm -rf $firaCodeVF
|
||||||
|
fontmake -g FiraCode.glyphs -o variable --output-dir distr/variable_ttf
|
||||||
|
|
||||||
# fix variable font metadata – very important
|
# fix variable font metadata – very important
|
||||||
gftools fix-vf-meta $firaCodeVF
|
gftools fix-vf-meta $firaCodeVF
|
||||||
|
mv $firaCodeVF.fix $firaCodeVF
|
||||||
|
|
||||||
# other fixes for metadata and hinting
|
# other fixes for metadata and hinting
|
||||||
gftools fix-nonhinting $firaCodeVF $firaCodeVF
|
gftools fix-nonhinting $firaCodeVF $firaCodeVF
|
||||||
gftools fix-gasp --autofix $firaCodeVF
|
gftools fix-gasp --autofix $firaCodeVF
|
||||||
|
mv $firaCodeVF.fix $firaCodeVF
|
||||||
|
|
||||||
gftools fix-dsig --autofix $firaCodeVF
|
gftools fix-dsig --autofix $firaCodeVF
|
||||||
|
|
||||||
# cleanup of temp files
|
# cleanup of temp files
|
||||||
tempFiles=$(ls distr/variable_ttf/*.fix && ls distr/variable_ttf/*-gasp*)
|
rm -rf distr/variable_ttf/*-gasp*
|
||||||
for temp in $tempFiles
|
|
||||||
do
|
|
||||||
rm -rf $temp
|
|
||||||
done
|
|
||||||
|
|
||||||
# TODO (late 2019?): use TTFautohint-VF for variable font (current support is minimal)
|
# TODO (late 2019?): use TTFautohint-VF for variable font (current support is minimal)
|
||||||
|
|
||||||
|
|
|
@ -1,26 +1,29 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -euo pipefail
|
||||||
|
|
||||||
rm -rf distr/variable_ttf
|
cd "`dirname $0`/.."
|
||||||
fontmake -g FiraCode.glyphs -o variable --output-dir distr/variable_ttf
|
|
||||||
|
|
||||||
# -------------------------------------------------------------
|
DIR=distr/variable_ttf
|
||||||
# fix variable font metadata as needed ------------------------
|
FILE=FiraCode-VF.ttf
|
||||||
|
|
||||||
firaCodeVF=distr/variable_ttf/FiraCode-VF.ttf
|
rm -rf $DIR/$FILE
|
||||||
|
fontmake -g FiraCode.glyphs -o variable --output-dir $DIR
|
||||||
|
|
||||||
|
cd distr/variable_ttf
|
||||||
|
|
||||||
# fix variable font metadata – very important
|
# fix variable font metadata – very important
|
||||||
gftools fix-vf-meta $firaCodeVF
|
gftools fix-vf-meta $FILE
|
||||||
|
mv $FILE.fix $FILE
|
||||||
|
|
||||||
# other fixes for metadata and hinting
|
# other fixes for metadata and hinting
|
||||||
gftools fix-nonhinting $firaCodeVF $firaCodeVF
|
gftools fix-nonhinting $FILE $FILE.fix
|
||||||
gftools fix-gasp --autofix $firaCodeVF
|
mv $FILE.fix $FILE
|
||||||
gftools fix-dsig --autofix $firaCodeVF
|
|
||||||
|
gftools fix-gasp --autofix $FILE
|
||||||
|
mv $FILE.fix $FILE
|
||||||
|
|
||||||
|
gftools fix-dsig --autofix $FILE
|
||||||
|
|
||||||
# cleanup of temp files
|
# cleanup of temp files
|
||||||
tempFiles=$(ls distr/variable_ttf/*.fix && ls distr/variable_ttf/*-gasp*)
|
rm -rf *-gasp.ttf
|
||||||
for temp in $tempFiles
|
|
||||||
do
|
|
||||||
rm -rf $temp
|
|
||||||
done
|
|
||||||
|
|
||||||
# TODO (late 2019?): use TTFautohint-VF for variable font (current support is minimal)
|
# TODO (late 2019?): use TTFautohint-VF for variable font (current support is minimal)
|
||||||
|
|
Ładowanie…
Reference in New Issue