org.fife.ui.rsyntaxtextarea
syntax package. This token type paints itself as you would expect, and properly accounts for rendering hints (anti-aliasing and fractional fontmetrics).The current implementation paints as follows:
A problem with this implementation is that FontMetrics.charsWidth() is still used to calculate the width of a group of chars painted. Thus, the group of characters will be painted with the rendering hints specified, but the following tab (or group of characters if the current group was the end of a token) will not necessarily be painted at the proper x-coordinate (as FontMetrics.charsWidth() returns an int
and not a float
). The way around this would be to calculate the token's width in such a way that a float is returned (Font.getStringBounds()?).
@author Robert Futrell
@version 0.3
@see Token
@see VisibleWhitespaceToken
|
|
|
|