From: Keith Packard Date: Mon, 31 Aug 2020 22:05:41 +0000 (-0700) Subject: macosx: Hack JavaApplicationStub to set freetype properties X-Git-Tag: 1.9.5~1^2~9 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=7fc37f145a6ec3f913e908b6500d1e2c6dd405c8;hp=075999e274dd1815b15c0d717d1af4e7717e5da9 macosx: Hack JavaApplicationStub to set freetype properties Set the FREETYPE_PROPERTIES environment variable to revert to non-fuzzy text. Signed-off-by: Keith Packard --- 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 #