Skip to content
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

Distorted Text #90

Closed
deepsidhu1313 opened this issue Oct 22, 2014 · 3 comments
Closed

Distorted Text #90

deepsidhu1313 opened this issue Oct 22, 2014 · 3 comments

Comments

@deepsidhu1313
Copy link

I am using RichTextFx library for code editor in my parallel computing framework. Sometimes i get distorted text in the whole text area. Is this problem bcz of JDK8u20 or from any bug in RichTextFX? Also when i press ctrl+z, Code written in codeArea gets clear. Is there any thing to prevent it from happening and adding a proper undo function? Also i will be very thankful to you if you suggest any tips to make a proper code editor for the framework.

Thanks :-)

screenshot from 2014-10-22 22 51 45

@TomasMikula
Copy link
Member

Hi Navdeep,

this is likely the same issue as #88. I'm not sure whether this is a JDK or RichTextFX problem, might be a combination of both.

Regarding "Ctrl+Z" clearing the text: If you inserted the text using codeArea.replaceText or similar, then this is the correct behavior—it undoes the last action, which was inserting the text. If you want to prevent this, you can do so by

codeArea.replaceText("/* Initial content */");

// clear undo history
codeArea.getUndoManager().forgetHistory();
codeArea.getUndoManager().mark();

In the future, please open one issue for each problem.

Best,
Tomas

@TomasMikula
Copy link
Member

Closing this issue as a duplicate. Please refer to #88.

@RobertBColton
Copy link

@TomasMikula I just want to confirm for you that the artifacts on the two words "License headers" in his screencap is also similar to what I saw with the HTML WebView JFX control. Especially when horizontally scrolling it would rip the bottom half of some sentences off and distort them, which directly contrasts with the other bugs that are more present with vertical scrolling. The bold letters look like they are missing Antialiasing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants