From db9a71a270c7b831e3cd7c9f51c7b9074d1e1384 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Wed, 26 Jul 2023 08:55:35 +0200 Subject: [PATCH] generate-font-image-previews: Update Inkscape calls [why] Verbs have been dropped from Inkscape with version 1.2 [how] Use actions instead. I'm not sure how well that works with older Inkscapes now, but ... sigh [note] Also add missing helper for font filenames for Intel One Mono. Signed-off-by: Fini Jastrow --- bin/scripts/generate-font-image-previews.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/scripts/generate-font-image-previews.sh b/bin/scripts/generate-font-image-previews.sh index 1debeb95f..6082962ec 100755 --- a/bin/scripts/generate-font-image-previews.sh +++ b/bin/scripts/generate-font-image-previews.sh @@ -43,7 +43,7 @@ generate_preview() { fontText=$2 echo "[Generating] $font" sed -e "s/000000/ffffff/" -e "s/sans-serif/${font}/" -e "s/Font Name/${fontText}/" <"$template_svg" >"${output_dir}${font}.svg" - inkscape "${output_dir}${font}.svg" -g "--verb=EditSelectAll;ObjectToPath;FileVacuum;FitCanvasToDrawing;FileSave;FileQuit" 2>/dev/null + inkscape "${output_dir}${font}.svg" --actions="select-all; object-to-path; vacuum-defs; fit-canvas-to-selection; export-filename:${output_dir}${font}.svg; export-do" # svgo "${output_dir}${font}.svg" } @@ -52,7 +52,7 @@ generate_preview_symbols() { fontText=$2 echo "[Gen. Symb.] $font" sed -e "s/000000/ffffff/" -e "40,80s/sans-serif/${font}/" -e "s/Font Name/${fontText}/" <"$template2_svg" >"${output_dir}${font}.svg" - inkscape "${output_dir}${font}.svg" -g "--verb=EditSelectAll;ObjectToPath;FileVacuum;FitCanvasToDrawing;FileSave;FileQuit" 2>/dev/null + inkscape "${output_dir}${font}.svg" --actions="select-all; object-to-path; vacuum-defs; fit-canvas-to-selection; export-filename:${output_dir}${font}.svg; export-do" # svgo "${output_dir}${font}.svg" } @@ -87,6 +87,7 @@ image_font_files=( \ 'Inconsolata/InconsolataNerdFont-Regular.ttf' \ 'InconsolataGo/Regular/InconsolataGoNerdFont-Regular.ttf' \ 'InconsolataLGC/Regular/InconsolataLGCNerdFont-Regular.ttf' \ + 'IntelOneMono/Regular/IntoneMonoNerdFont-Regular.ttf' \ 'Iosevka/Regular/IosevkaNerdFont-Regular.ttf' \ 'IosevkaTerm/Regular/IosevkaTermNerdFont-Regular.ttf' \ 'JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf' \