-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unicode Version 16.0 update; added sources and build scripts
- Loading branch information
Showing
384 changed files
with
1,374,575 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[LastResort-Regular] | ||
f=Last Resort | ||
s=Regular | ||
|
||
[LastResortHE-Regular] | ||
f=Last Resort High-Efficiency | ||
s=Regular |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Get the absolute path to the bash script | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | ||
|
||
# Remove old versions | ||
for file in LastResort*-Regular.otf LastResort*-Regular.ttf | ||
do | ||
if [[ -f $file ]] | ||
then | ||
rm $file | ||
echo "Removed $file" | ||
fi | ||
done | ||
|
||
# Build FORMAT 13 (Last Resort High-Efficiency; LastResortHE-Regular.ttf) | ||
|
||
# Build a temporary name-keyed OpenType/CFF font (OTF) | ||
makeotf -r -nS -nshw -overrideMenuNames -f font.ufo -ff features.fea -omitMacNames -omitDSIG -gf GlyphOrderAndAliasDB -o LastResortHE-Regular.otf | ||
|
||
# Convert the OTF to TTF | ||
otf2ttf -o temp.ttf LastResortHE-Regular.otf | ||
|
||
# Replace the 'cmap' table with one that includes a Format 13 subtable | ||
ttx -m temp.ttf -o temp2.ttf cmap-f13.ttx | ||
|
||
# Replace the 'OS/2' and 'head' tables | ||
ttx -m temp2.ttf -o LastResortHE-Regular.ttf tables.ttx | ||
|
||
# Clean up | ||
rm LastResortHE-Regular.otf temp.ttf temp2.ttf | ||
|
||
# Build FORMAT 12 (Last Resort; LastResort-Regular.ttf) | ||
|
||
# The "lastresort13to12.py" script converts the Format 13 'cmap' subtable | ||
# to a Format 12 subtable, and generates an AFDKO "mergefonts" mapping file | ||
# that creates 16 duplicates of each glyph for more efficient range | ||
# mappings, along with a "GlyphOrderAndAliasDB2" file for use with AFKDO | ||
# "makeotf" | ||
|
||
python3 scripts/lastresort13to12.py cmap-f13.ttx | ||
mergefonts font2.ufo mergefonts.map font.ufo | ||
sed -i "" "s/ResortHE/Resort/g ; s/ High-Efficiency//g" font2.ufo/fontinfo.plist | ||
sed "s/ High-Efficiency//g" < features.fea > features2.fea | ||
|
||
# Build a temporary name-keyed OpenType/CFF font (OTF) | ||
makeotf -r -nS -nshw -overrideMenuNames -f font2.ufo -ff features2.fea -omitMacNames -omitDSIG -gf GlyphOrderAndAliasDB2 -o LastResort-Regular.otf | ||
|
||
# Convert the OTF to TTF | ||
otf2ttf -o temp.ttf LastResort-Regular.otf | ||
|
||
# Replace the 'cmap' table with one that includes a Format 12 subtable | ||
ttx -m temp.ttf -o temp2.ttf cmap-f12.ttx | ||
|
||
# Replace the 'OS/2' and 'head' tables | ||
ttx -m temp2.ttf -o LastResort-Regular.ttf tables.ttx | ||
|
||
# Clean up | ||
rm LastResort-Regular.otf temp.ttf temp2.ttf GlyphOrderAndAliasDB2 cmap-f12.ttx features2.fea mergefonts.map | ||
rm -rf font2.ufo | ||
|
||
# EOF |
Oops, something went wrong.