Skip to content

Commit

Permalink
build 1.063 with code font improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowtype committed Sep 1, 2020
1 parent 03a244c commit 4face84
Show file tree
Hide file tree
Showing 298 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ share/*
pyvenv.cfg

*.ttx
# *.zip
*.zip

mastering/build/*
node_modules
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,17 @@ After the files have been generated (do note that the static instances take a bi
To build all the static fonts, run:

```bash
version=1.062 # (replace version number)
version=1.063 # (replace version number)
python build.py --statfiles --version $version
python build.py --static --version $version
python build.py --static --version $**version**
```

**To build the variable font**

To build the variable font, run:

```bash
version=1.062 # (replace version number)
version=1.063 # (replace version number)
python build.py --varfiles --version $version
python build.py --variable --version $version
```
Expand Down
Binary file removed fonts/ArrowType-Recursive-1.062.zip
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.
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.
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.
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.
File renamed without changes.
File renamed without changes.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
font-style: oblique 0deg 15deg;
font-weight: 300 1000;
font-display: swap;
src: url('/fonts/Recursive_VF_1.062--subset_range_english_basic.woff2') format('woff2');
src: url('/fonts/Recursive_VF_1.063--subset_range_english_basic.woff2') format('woff2');
unicode-range: U+0020-007F,U+00A9,U+2190-2193,U+2018,U+2019,U+201C,U+201D,U+2022;
}

Expand All @@ -15,7 +15,7 @@
font-style: oblique 0deg 15deg;
font-weight: 300 1000;
font-display: swap;
src: url('/fonts/Recursive_VF_1.062--subset_range_latin_1.woff2') format('woff2');
src: url('/fonts/Recursive_VF_1.063--subset_range_latin_1.woff2') format('woff2');
unicode-range: U+00C0-00FF;
}

Expand All @@ -25,7 +25,7 @@
font-style: oblique 0deg 15deg;
font-weight: 300 1000;
font-display: swap;
src: url('/fonts/Recursive_VF_1.062--subset_range_latin_1_punc.woff2') format('woff2');
src: url('/fonts/Recursive_VF_1.063--subset_range_latin_1_punc.woff2') format('woff2');
unicode-range: U+00A0-00BF,U+2194-2199;
}

Expand All @@ -35,7 +35,7 @@
font-style: oblique 0deg 15deg;
font-weight: 300 1000;
font-display: swap;
src: url('/fonts/Recursive_VF_1.062--subset_range_latin_ext.woff2') format('woff2');
src: url('/fonts/Recursive_VF_1.063--subset_range_latin_ext.woff2') format('woff2');
unicode-range: U+0100-017F;
}

4 changes: 2 additions & 2 deletions src/build-scripts/make-release/00-prep-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ outputDir=ArrowType-Recursive-${version/" "/"_"}
# rm -rf fonts/$outputDir.zip

# ---------------------------------------------
# make sure versions are set
# if you need to make sure versions are set to something specific

python src/build-scripts/make-release/change-font-versions-in-dir.py $dir $version
# python src/build-scripts/make-release/change-font-versions-in-dir.py $dir $version

# ---------------------------------------------
# make folders for outputs
Expand Down
19 changes: 12 additions & 7 deletions src/build-scripts/make-release/dlig2calt.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,26 @@ def dlig2calt(fontPath, inplace=False):

# update code ligature widths to be single units with left overhang
for glyphName in font.getGlyphNames():
if font['hmtx'][glyphName][0] > 600:
if font['hmtx'][glyphName][0] > unitWidth:

decomposeAndRemoveOverlap(font, glyphName)

# add to dict for later?
# codeLigs[glyphName] = font['hmtx'][glyphName][0]

# set width to space (e.g. 600), then offset left side to be negative
# lsb = oldLSB - oldWidth
oldLSB = font['hmtx'][glyphName][1]
oldWidth = font['hmtx'][glyphName][0]
newLSB = oldLSB - (oldWidth - unitWidth)
oldLSB = font['hmtx'][glyphName][1]
widthDiff = oldWidth - unitWidth
newLSB = oldLSB - widthDiff
font['hmtx'].__setitem__(glyphName, (unitWidth, newLSB))

# Adjust coordinates in glyf table
coords = font['glyf'][glyphName].coordinates
phantoms = font['glyf'].getPhantomPoints(glyphName, font)

adjustedCoords = [(x-widthDiff, y) for x, y in coords]
adjustedPhantoms = [(0,0), (unitWidth,0), phantoms[-2], phantoms[-1]]

newCoords = adjustedCoords+adjustedPhantoms
font['glyf'].setCoordinates(glyphName, newCoords, font)
# add new feature code, using calt rather than dlig
builder.addOpenTypeFeatures(font,"src/features/features/calt-generated--code_fonts_only.fea")

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.062
1.063

0 comments on commit 4face84

Please sign in to comment.