-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blurry Fonts on Mac #342
Comments
Which installation mechanism did you use? Which MacOS? I will try to replicate. |
I downloaded https://ptolemy.berkeley.edu/ptolemyII/ptII11.0/ptII11.0.1.setup.mac.app.tar.gz I followed the instructions on this page: https://ptolemy.berkeley.edu/ptolemyII/ptII11.0/mac.htm I used Java 8(OpenJDK 1.8.0_251 Oracle) and later again with Java 17 (OpenJDK Runtime Environment Temurin-17.0.2+8). Fonts look like out of focus (They are not crisp). It is possible to work with it, but it gets uncomfortable after a while. (Other Java Swing apps like Netbeans look fine on my system). It gets more evident with Plot windows |
The font problem rings a bell, but a quick search did not find
anything. I can look further tonight (Pacific time).
It might be possible to set some command line arguments, see
https://wiki.archlinux.org/title/Java_Runtime_Environment_fonts
More later ...
_Christopher
…On 3/14/22 10:54 AM, david-San wrote:
I downloaded
https://ptolemy.berkeley.edu/ptolemyII/ptII11.0/ptII11.0.1.setup.mac.app.tar.gz
I followed the instructions on this page:
https://ptolemy.berkeley.edu/ptolemyII/ptII11.0/mac.htm
Executing the installer by hand.
cd ~/Downloads/ptII11.0.1.setup.mac.app/Contents/Resources/Java
java -jar ptII11.0.1.setup.mac.jar
I used Java 8(OpenJDK 1.8.0_251 Oracle) and later again with Java 17
(OpenJDK Runtime Environment Temurin-17.0.2+8).
I am using a MacBook with Retina display.
Fonts look like out of focus (They are not crisp). It is possible to
work with it, but it gets uncomfortable after a while. (Other Java
Swing apps like Netbeans look fine on my system). It gets more evident
with Plot windows
Screenshot 2022-03-14
<https://user-images.githubusercontent.com/677981/158232013-eb2e9fa9-25be-456f-9355-2a2e089046f2.png>
—
Reply to this email directly, view it on GitHub
<#342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSOJYIJT2XMTNQKLWP5WDU754OFANCNFSM5QVMCLZQ>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this
thread.Message ID: ***@***.***>
|
I tried but I id not have any success. Do you know where I could add options to the JVM? Is there a config file or something similar? In this link says that macOS does not offer font configuration files: |
I got caught up with other tasks last night.
There is no Ptolemy II-specific configuration file to set command line
parameters. When building from source, $PTII/bin/ptinvoke.in is read in
and $PTII/bin/ptinvoke is created. $PTII/bin/vergil is a symbolic link
to ptinvoke.
If I recall, you are running Java from the command line, so that is
where you would add Java command-line arguments.
I'm sorry for the delay, I should be able to take a look tonight.
_Christopher
…On 3/15/22 9:22 AM, david-San wrote:
https://wiki.archlinux.org/title/Java_Runtime_Environment_fonts
I tried but I id not have any success. Do you know where I could add
options to the JVM? Is there a config file or something similar?
—
Reply to this email directly, view it on GitHub
<#342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSOJ63GEOXVZWNDNTUVVTVAC2KRANCNFSM5QVMCLZQ>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Summary: The installer includes JDK 1.8, which seems to be blurry under recent versions of macOS such as macOS 11.6.3 (Big Sur). Ptolemy II 11.0.1 will work with JDK up to JDK 10, but Ptolemy II 11.0.1 fails to start with JDK 11.0 or later because the JDK changed in a non-backward compatible way. The workaround is to compile Ptolemy II from sources, see https://www.icyphy.org/ptII/ I'll continue to look in to the blurry font problem. Also, there are a bunch of bad links on https://github.com/icyphy/ptII, it looks like the README.md has links to cdn.jsdelivr.net that no longer render the page, for example: https://cdn.jsdelivr.net/gh/icyphy/ptII@master/doc/install_index.htm Details: I have a macBook Pro late 2013 running macOS 11.6.3 (Big Sur). When I run Ptolemy II from within the installer, the fonts are definitely blurry. The are also blurry when I run
where $PTII is set to the directory where Ptolemy II was installed
If I recall correctly, the installer runs $PTII/bin/Vergil.app which uses the JDK 1.8.0_101-b13 that we ship in $PTII/jdk. Once Ptolemy II starts up, to check which JVM you are running, do File -> New -> Graph Editor then do View -> JVM PropertiesI was incorrect, there is a file that sets the command line arguments when $PTII/bin/Vergil.app is run. That file is
usr_paths is no longer supported, the ptII development tree has fixes for this, see https://github.com/icyphy/ptII/search?q=usr_paths |
Bingo! https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display says:
What worked for me was to edit
to
and then run Note that the title bar is still blurry, but the contents of the window is more crisp: I'll think about creating a new installer that has this change, but it could be tricky or impossible to do. I'll add something to https://ptolemy.berkeley.edu/ptolemyII/ptII11.0/mac.htm |
Thank you cxbrooks. I am trying the workarounds you suggested but I do not get any difference in Big Sur.
|
Check to make sure that The way to do this is to start Vergil, either by running Then do File -> New -> Graph Editor and then in the Graph Editor Window, do View -> JVM Properties. Look for
Other things to try:
About Windows, I can eventually take a look, but it is a low priority for me. I can take a look tonight (Pacific time). |
Under Windows, I was able to install Ptolemy II 11.0.1 using the Windows installer at https://ptolemy.berkeley.edu/ptolemyII/ptII11.0/index.htm and it was not blurry. I installed it on a fairly old Intel NUC running Windows 10 with 1920x1080 resolution. The machine did have Java installed before I ran the installer. I'll update the top of https://ptolemy.berkeley.edu/ptolemyII/ptII11.0/windows.htm to be more clear. In theory, the installer could include a version of the JVM for use during installation, the tricky part would be to have the JVM used by the installer and the JVM that is installed be one and the same. |
I updated https://ptolemy.berkeley.edu/ptolemyII/ptII11.0/windows.htm to be more clear that Java is needed to run the installer. Let me know if sun.java2d.uiScale appears in Vergil's JVM Properties window. I suggest trying the build from the command line, see https://www.icyphy.org/ptII/ |
Not any flavour of Java. (I am using Windows 11 on HiDPI monitor).
|
I tried on my PTII installation that runs the internal 1.8 despite I have on my Mac JDK 17, and it is not being loaded. I am using the default installation since I cannot clone the git repository, so I cannot compile a new version:
|
Great! Thanks for trying again.
I might be slightly confused, but it seems that the screen is less
blurry for you, right?
You were able to add sun.java2d.uiScale=2.5 to the VM command line args
which solved the problem. I'll keep this issue open until I rebuild the
macOS installer with that setting built in. It could be awhile, I have
other tasks. However, this issue will help anyone else who has the problem.
I'm not sure why my screen capture is a bit blurry.
About the Windows installer, I'll update the web page to suggest JDK
1.8. Thanks for trying various options. My install on a Windows
machine did use JDK 1.8. It is too bad that the Java maintainers
completely broke backward compatibility.
About git failing, that message is a new one to me. If you are
interested in installing Ptolemy II from sources, you could see if doing
"cd ptII; git pull" works. Otherwise, remove the ptII directory
possibly created by git and try again. If the error persists, see
https://errorseverywhere.com/solve-git-fatal-the-remote-end-hung-up-unexpectedly-error/
…On 3/18/22 8:28 AM, david-San wrote:
Bingo!
https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display
says:
I tried on my PTII installation that runs the internal 1.8 despite I
have on my Mac JDK 17, and it is not being loaded. I am using the
default installation since I cannot clone the git repository, so I
cannot compile a new version:
|git clone --depth=50 --branch=master --single-branch
https://github.com/icyphy/ptII Cloning into 'ptII'... remote:
Enumerating objects: 20981, done. remote: Counting objects: 100%
(20981/20981), done. remote: Compressing objects: 100% (15188/15188),
done. fatal: The remote end hung up unexpectedly4 MiB | 3.21 MiB/s
fatal: early EOF fatal: index-pack failed |
I have to say that my screen looks less blurry than yours.
Screenshot 2022-03-18 at 15 15 48
<https://user-images.githubusercontent.com/677981/159032154-ee852dc5-6b05-4925-a9c8-b3e824149a0c.png>
—
Reply to this email directly, view it on GitHub
<#342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSOJ4OTSDMP3DTSVWEW6DVASOIHANCNFSM5QVMCLZQ>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I think you misread my post. I do not think this workaround did anything. It has always been like this. It looks completely out of focus. Click on the image and look how my normal page is at full resolution. In fact, I added the commands but the JVM is not using them. You can see it on the screenshot. As I said before, it is not unusable, just uncomfortable and after a few minutes I even get dizzy. Honestly, I think it looks better on Windows. It is small, but it does not cause dizziness. |
Right, I thought I was misreading your post. I'm away from my computer
for a few days, I'll take a look on Monday or Sunday.
…On 3/18/22 9:48 AM, david-San wrote:
I think you misread my post. I do not think this workaround did
anything. It has always been like this. It looks completely out of
focus. Look how my normal page looks.
In fact I added the commands but the JVM is not using them. You can
see it on the screenshot. As I said before, it is not unusable, just
uncomfortable and after a few minutes I even get dizzy.
Honestly, I think it looks better on Windows. It is small, but it does
not cause dizziness.
—
Reply to this email directly, view it on GitHub
<#342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSOJZN5IANSD2VBZV3WC3VASXWRANCNFSM5QVMCLZQ>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
The summary is that the JVM that is in the macOS Ptolemy 11.0.1 installer seems to ignore Probably the best thing to do is to try building from sources, so maybe try cloning the repo again.B BTW - When I look at your screen shot of the Ptolemy II Vergil JDK Properties window, I don't see the |
Hi! I just installed ptII and the fonts look very blurry on macOS. I have tried different JVM from 8 to 17 and fonts look blurry.
Is there something I need to configure?
The text was updated successfully, but these errors were encountered: