From 33445de6c0ba65c04642753aaf82fd479e63f04a Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Sat, 31 May 2025 12:31:03 +0200 Subject: [PATCH] Try to add embed fonts for macOS --- misc/Info.plist | 2 ++ misc/MacQetDeploy.sh | 8 +++++++- misc/MacQetDeploy_arm64.sh | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/misc/Info.plist b/misc/Info.plist index 274766723..7e8ca3dcc 100644 --- a/misc/Info.plist +++ b/misc/Info.plist @@ -2,6 +2,8 @@ + ATSApplicationFontsPath + fonts/ CFBundleDocumentTypes diff --git a/misc/MacQetDeploy.sh b/misc/MacQetDeploy.sh index ab5e12ae6..37c02bd7e 100644 --- a/misc/MacQetDeploy.sh +++ b/misc/MacQetDeploy.sh @@ -190,7 +190,7 @@ echo "Copy file missing:" QET_ELMT_DIR="${current_dir}/elements/" QET_TBT_DIR="${current_dir}/titleblocks/" QET_LANG_DIR="${current_dir}/lang/" - +QET_FONTS_DIR="${current_dir}/fonts/" # Add new folder for Qt dialog translation see ## see . @@ -221,6 +221,12 @@ if [ -d "${LANG_DIR}" ]; then fi +if [ -d "${QET_FONTS_DIR}" ]; then + echo "Copying fonts in the bundle... " + mkdir $BUNDLE/Contents/Resources/fonts + cp ${current_dir}/fonts/*.ttf $BUNDLE/Contents/Resources/fonts + +fi ### create disk image ############################################### diff --git a/misc/MacQetDeploy_arm64.sh b/misc/MacQetDeploy_arm64.sh index 2fefeddb6..1c360b240 100644 --- a/misc/MacQetDeploy_arm64.sh +++ b/misc/MacQetDeploy_arm64.sh @@ -187,6 +187,7 @@ QET_ELMT_DIR="${current_dir}/elements/" QET_TBT_DIR="${current_dir}/titleblocks/" QET_LANG_DIR="${current_dir}/lang/" QET_EXAMPLES_DIR="${current_dir}/examples/" +QET_FONTS_DIR="${current_dir}/fonts/" # Add new folder for Qt dialog translation see @@ -223,6 +224,13 @@ if [ -d "${QET_EXAMPLES_DIR}" ]; then mkdir $BUNDLE/Contents/Resources/examples cp ${current_dir}/examples/*.qet $BUNDLE/Contents/Resources/examples +fi + +if [ -d "${QET_FONTS_DIR}" ]; then + echo "Copying fonts in the bundle... " + mkdir $BUNDLE/Contents/Resources/fonts + cp ${current_dir}/fonts/*.ttf $BUNDLE/Contents/Resources/fonts + fi codesign --force --deep --sign --timestamp -s "Developer ID Application: Laurent TRINQUES (Y73WZ6WZ5X)" --options=runtime $BUNDLE ### create zip tarball ###############################################