Fixed build.sh to work on macOS, regen glyphs from *.fea

This commit is contained in:
Nikita Prokopov 2022-03-15 15:51:00 +01:00
parent 31adb247e5
commit 390c41cc94
3 changed files with 45 additions and 46 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
# Name: single story lowercase g
# Name: single storey lowercase g
sub g by g.cv02;
sub gbreve by gbreve.cv02;

View File

@ -58,7 +58,9 @@ done
########### ############## ########### }}}
# Create a temporary file that can be manipulated without messing with the original
FIRACODE_GLYPHS_FILE=$(mktemp --suffix=".glyphs")
FIRACODE_GLYPHS_FILE=$(mktemp)
mv "${FIRACODE_GLYPHS_FILE}" "${FIRACODE_GLYPHS_FILE}.glyphs"
FIRACODE_GLYPHS_FILE="${FIRACODE_GLYPHS_FILE}.glyphs"
export FIRACODE_GLYPHS_FILE
cp ../FiraCode.glyphs "${FIRACODE_GLYPHS_FILE}"
@ -75,7 +77,7 @@ if [ "${use_features_for_family_name}" -ne 0 ]; then
fi
if [ "${FIRACODE_FAMILY_NAME}" != "Fira Code" ]; then
tmp_glyphs=$(mktemp --suffix=".glyphs")
tmp_glyphs=$(mktemp)
echo "Creating font with family name: ${FIRACODE_FAMILY_NAME}"
awk '/familyName = "Fira Code";/ {$0=nc}1' nc="familyName = \"${FIRACODE_FAMILY_NAME}\";" \