From 7fc37f145a6ec3f913e908b6500d1e2c6dd405c8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 31 Aug 2020 15:05:41 -0700 Subject: [PATCH] macosx: Hack JavaApplicationStub to set freetype properties Set the FREETYPE_PROPERTIES environment variable to revert to non-fuzzy text. Signed-off-by: Keith Packard --- .../AltosUI.app/Contents/MacOS/JavaApplicationStub | 12 ++++++++++++ .../MicroPeak.app/Contents/MacOS/JavaApplicationStub | 12 ++++++++++++ .../TeleGPS.app/Contents/MacOS/JavaApplicationStub | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub b/altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub index 16966918..145a260b 100755 --- a/altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub +++ b/altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub @@ -1,4 +1,16 @@ #!/bin/bash +# +# Fix fonts. I don't know why the getting the +# basename of the app set to . matters, but it does +# +case "$0" in + /*) + cd `dirname "$0"` + ./`basename "$0"` "$@" + exit $? + ;; +esac +export FREETYPE_PROPERTIES=truetype:interpreter-version=35 ################################################################################## # # # universalJavaApplicationStub # diff --git a/micropeak/MicroPeak.app/Contents/MacOS/JavaApplicationStub b/micropeak/MicroPeak.app/Contents/MacOS/JavaApplicationStub index 16966918..145a260b 100755 --- a/micropeak/MicroPeak.app/Contents/MacOS/JavaApplicationStub +++ b/micropeak/MicroPeak.app/Contents/MacOS/JavaApplicationStub @@ -1,4 +1,16 @@ #!/bin/bash +# +# Fix fonts. I don't know why the getting the +# basename of the app set to . matters, but it does +# +case "$0" in + /*) + cd `dirname "$0"` + ./`basename "$0"` "$@" + exit $? + ;; +esac +export FREETYPE_PROPERTIES=truetype:interpreter-version=35 ################################################################################## # # # universalJavaApplicationStub # diff --git a/telegps/TeleGPS.app/Contents/MacOS/JavaApplicationStub b/telegps/TeleGPS.app/Contents/MacOS/JavaApplicationStub index 16966918..145a260b 100755 --- a/telegps/TeleGPS.app/Contents/MacOS/JavaApplicationStub +++ b/telegps/TeleGPS.app/Contents/MacOS/JavaApplicationStub @@ -1,4 +1,16 @@ #!/bin/bash +# +# Fix fonts. I don't know why the getting the +# basename of the app set to . matters, but it does +# +case "$0" in + /*) + cd `dirname "$0"` + ./`basename "$0"` "$@" + exit $? + ;; +esac +export FREETYPE_PROPERTIES=truetype:interpreter-version=35 ################################################################################## # # # universalJavaApplicationStub # -- 2.30.2