Rolled back ascender/descender changes from 6ee86a64b8 #798

pull/855/head
Nikita Prokopov 2019-08-01 19:30:48 +03:00
rodzic cf056b2dee
commit c13a8035c2
29 zmienionych plików z 45 dodań i 14 usunięć

3
.gitignore vendored
Wyświetl plik

@ -8,4 +8,5 @@ FiraCode\ (Autosaved).glyphs
master_ufo
instance_ufo
venv
.DS_Store
.DS_Store
*.numbers

Wyświetl plik

@ -236,11 +236,11 @@ capHeight = 1374;
customParameters = (
{
name = typoAscender;
value = 1980;
value = 1870;
},
{
name = typoDescender;
value = -644;
value = -530;
},
{
name = typoLineGap;
@ -248,19 +248,19 @@ value = 0;
},
{
name = winAscent;
value = 2164;
value = 1870;
},
{
name = winDescent;
value = 1000;
value = 530;
},
{
name = hheaAscender;
value = 1980;
value = 1870;
},
{
name = hheaDescender;
value = -644;
value = -530;
},
{
name = hheaLineGap;
@ -306,11 +306,11 @@ capHeight = 1386;
customParameters = (
{
name = typoAscender;
value = 1980;
value = 1870;
},
{
name = typoDescender;
value = -644;
value = -530;
},
{
name = typoLineGap;
@ -318,19 +318,19 @@ value = 0;
},
{
name = winAscent;
value = 2164;
value = 1870;
},
{
name = winDescent;
value = 1000;
value = 530;
},
{
name = hheaAscender;
value = 1980;
value = 1870;
},
{
name = hheaDescender;
value = -644;
value = -530;
},
{
name = hheaLineGap;

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -17,3 +17,4 @@ brew install ttfautohint
brew install woff2
brew tap bramstein/webfonttools
brew install sfnt2woff-zopfli
pip3 install fontbakery

Wyświetl plik

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/bin/bash -e
source venv/bin/activate

24
script/build_ttf 100755
Wyświetl plik

@ -0,0 +1,24 @@
#!/bin/bash -e
source venv/bin/activate
args=( "$@" )
default_weights=( "Light" "Regular" "Retina" "Medium" "Bold" )
weights=( "${args[@]:-"${default_weights[@]}"}" )
for weight in "${weights[@]}"; do
file=distr/ttf/FiraCode-${weight}.ttf
echo "Making " ${file}
rm -rf ${file}
fontmake -g FiraCode.glyphs -o ttf --output-dir distr/ttf -i "Fira Code ${weight}"
echo "Fixing DSIG in " ${file}
gftools fix-dsig --autofix ${file}
echo "TTFautohint " ${file}
hintedFile=${file/".ttf"/"-hinted.ttf"}
ttfautohint -I ${file} ${hintedFile} --stem-width-mode nnn --composites
# --windows-compatibility
mv ${hintedFile} ${file}
done

5
script/check 100755
Wyświetl plik

@ -0,0 +1,5 @@
#!/bin/bash -e
source venv/bin/activate
fontbakery check-universal -C $1