macosx: Hack JavaApplicationStub to set freetype properties
authorKeith Packard <keithp@keithp.com>
Mon, 31 Aug 2020 22:05:41 +0000 (15:05 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 26 Sep 2020 03:07:39 +0000 (20:07 -0700)
Set the FREETYPE_PROPERTIES environment variable to revert to
non-fuzzy text.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub
micropeak/MicroPeak.app/Contents/MacOS/JavaApplicationStub
telegps/TeleGPS.app/Contents/MacOS/JavaApplicationStub

index 16966918da4e3f715b18f4e71db0714ebb17f56e..145a260ba76c07cfcb7dffb469b6191049f4d556 100755 (executable)
@@ -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                                                   #
index 16966918da4e3f715b18f4e71db0714ebb17f56e..145a260ba76c07cfcb7dffb469b6191049f4d556 100755 (executable)
@@ -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                                                   #
index 16966918da4e3f715b18f4e71db0714ebb17f56e..145a260ba76c07cfcb7dffb469b6191049f4d556 100755 (executable)
@@ -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                                                   #