Skip to content

Commit 7ee65d1

Browse files
committed
ubuntu 24.04 compatiblity
1 parent da6529e commit 7ee65d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mkttf.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ for weight in Normal Bold Italic Bold-Italic; do
156156
FILE_SUFFIX=$(echo "$weight"|cut -b 1|tr '[:upper:]' '[:lower:]')
157157
fi
158158

159-
time "${MYDIR}/mkttf.py" \
159+
time python3 "${MYDIR}/mkttf.py" \
160160
-f "${NICEFONTNAME}" -n "${FONTNAME}${WEIGHT_NAME:+"-${WEIGHT_NAME}"}" \
161161
-N "${NICEFONTNAME}${WEIGHT_NAME:+" ${WEIGHT_NAME}"}" \
162162
-C "; Copyright (C) $(date '+%Y') Tilman Blumenbach; Licensed under the SIL Open Font License, Version 1.1" \

potrace-wrapper.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ potrace_args=("${@:1:$#-1}")
5252
# that, we need to specify the new dimensions in PostScript points (1/72 in).
5353
# FontForge assumes a resolution of 72 DPI (or rather "pixels per inch"), so we
5454
# can just directly use the pixel dimensions as points:
55-
wh=($(magick identify -format '%[width]pt %[height]pt' "${input?}"))
55+
wh=($(identify -format '%[width]pt %[height]pt' "${input?}"))
5656

5757
if [ -n "$MKTTF_POTRACE_DEBUG" ]; then
5858
set -x
@@ -61,7 +61,7 @@ fi
6161
# NB: We pass "-k 0.9" to Potrace because the bitmaps produced by FontForge are
6262
# gray for some reason, and we need to make Potrace understand that the gray
6363
# bits are meant to be black.
64-
magick convert "${input?}" -sample '1000%' - \
64+
convert "${input?}" -sample '1000%' - \
6565
| potrace -k 0.9 -W "${wh[0]}" -H "${wh[1]}" "${potrace_args[@]}"
6666

6767
# vim: sw=4 ts=4 et tw=79

0 commit comments

Comments
 (0)