by robert » Sun Jun 28, 2009 10:55 pm
The parameter for setTextAntiAliasHint is the name of the RenderingHints value, as a String, not the value itself. From the
Javadoc:
public void setTextAntiAliasHint(java.lang.String aaHintFieldName)
Sets the rendering hint to use when antialiasing text in this editor.
Parameters:
aaHintFieldName - The name of a field in java.awt.RenderingHints. If an unknown or unsupported field name is specified (such as a 1.6+ hint being specified when this is a 1.4/1.5 JVM), null is used instead. A value of null means "no antialiasing."
So for example, you should be able to do:
- Code: Select all
setTextAntiAliasHint("VALUE_TEXT_ANTIALIAS_ON");
I can't remember why, but there is some peculiar reason you pass it the name of the RenderingHints value, and not the value itself. I'll have to dig into the code to remember why. Perhaps in a future release you'll actually pass a RenderingHints value.
The parameter for setTextAntiAliasHint is the name of the RenderingHints value, as a String, not the value itself. From the [url=http://javadoc.fifesoft.com/rsyntaxtextarea/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea.html#setTextAntiAliasHint(java.lang.String)]Javadoc[/url]:
[quote]
public void setTextAntiAliasHint(java.lang.String aaHintFieldName)
Sets the rendering hint to use when antialiasing text in this editor.
Parameters:
aaHintFieldName - The name of a field in java.awt.RenderingHints. If an unknown or unsupported field name is specified (such as a 1.6+ hint being specified when this is a 1.4/1.5 JVM), null is used instead. A value of null means "no antialiasing."
[/quote]
So for example, you should be able to do:
[code]setTextAntiAliasHint("VALUE_TEXT_ANTIALIAS_ON");[/code]
I can't remember why, but there is some peculiar reason you pass it the name of the RenderingHints value, and not the value itself. I'll have to dig into the code to remember why. Perhaps in a future release you'll actually pass a RenderingHints value.