-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cursor position is off on mac #103
Comments
so strange... I’ve been living on my processing branch in Mac for a few months and haven’t seen that yet. I’ll investigate more and report back. |
Hey @clankill3r! Thanks for submitting this. :) Unfortunately, I can't seem to reproduce this in mainline or in my branch. I tried with max
|
Could it be related to high dpi / retina / font size / external monitor? |
Ah good call @hamoid! It's the editor font size. Ooopphhh... it looks like its on the java11 branch. I'll look into that. |
Ah gee... https://github.com/sampottinger/processing/blob/master/app/src/processing/app/syntax/JEditTextArea.java#L621... something must have changed with Swing that is causing this calculation to be different. |
Hey there! I'll have to take a look at this again later... having a bit of trouble for now. I think it has to do with deprecation in https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/Utilities.html re JEditTextArea's P.S. It seems to only happen in some font / size combinations. |
I haven't tried this, but it seems under active development: It seems offer "copy styled" and mouse wheel scrolling (two things that were added to the text editor in the Processing IDE) I'm curious about how good the autocomplete is. The current autocomplete doesn't work for me sometimes (maybe for objects? I can't remember). |
No
No |
Thanks @clankill3r and @hamoid! (Sigh) It's not a great situation... I'd prefer to switch out of JEdit Syntax for something like RSyntaxTextArea. For the record: I think the IDE is important for approachability and immediacy of Processing (I believe that the project would be worse off if we only supported That in mind, I have found that Source Code Pro has had similar issues in other editors (sublime and XCode). Furthermore, using Swing Utilities, I see that, in the problematic font sizes, the characters have widths with half pixels (*.5) which might be causing trouble with Still looking! I'll report back soon. |
Welp... Looks like I got a fix! :D Still want to chat with Ben about a possible move away from JEdit Syntax later but please see #107. |
We're merged in! Thanks for your help! |
Hello, |
OSX 10.12.6
The text was updated successfully, but these errors were encountered: