VISTALL / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Font anti-aliasing is turned off #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add an EditorPane.
2. Set the type to text/java.
3. Observe with -Dswing.aatext=true

What is the expected output?
* Anti-aliased text.

What do you see instead?
* Jaggy font rendering.

What version of the product are you using? On what operating system?
* Ubuntu 8.04

Please provide any additional information below.
* The font *is* aliased if I don't set the content type.

Original issue reported on code.google.com by peter.arrenbrecht on 24 Nov 2008 at 4:15

GoogleCodeExporter commented 9 years ago
I'm working on this with some other enhancments.  The issue is that we need to 
call
the setRenderingHints before the graphics is used.  
I'm testing on Windows XP.

Original comment by ayman.al...@gmail.com on 30 Nov 2008 at 5:18

GoogleCodeExporter commented 9 years ago
Much appreciated. I looked into it myself but didn't see where the crucial 
difference
to Swing's normal rendering was.

Original comment by peter.arrenbrecht on 30 Nov 2008 at 9:11

GoogleCodeExporter commented 9 years ago
Added config property View.TextAA = ON
There are other possible values, which you can pass before you call
editorPane.setContentType (see the provided jsyntaxpane.config.properties file).
This is now in release 0.9.4, with alpha binary downloaded.

Original comment by ayman.al...@gmail.com on 1 Dec 2008 at 12:13

GoogleCodeExporter commented 9 years ago
Nice! Confirmed to anti-alias properly on Ubuntu 8.04 (GNOME).

Original comment by peter.arrenbrecht on 1 Dec 2008 at 8:30