has anyone ever successfully used the java.awt.font.LineBreakMeasurer
to draw word-wrapping text that has java.awt.font.TextAttribute.TRACKING
(also known as letter spacing) set on the font?
i create the font by:
Map<TextAttribute, Object> map = new HashMap<TextAttribute, Object> ();
map.put(TextAttribute.SIZE, 18);
map.put(TextAttribute.TRACKING, .04);
Font f = Font.createFont(Font.TRUETYPE_FONT, new File ("C:/arialbd.ttf"));
f = f.deriveFont(map);
everything looks good when rendered to an image and tracking is 0
. but when the tracking is set > 0
everything is drawn correctly but the line breaks do not change. the text just disappears off the side of the image.