Re: [JAVA2D] Measuring mixed font text

2006-10-17 Thread Phil Race
An internal class - TextLine - used by TextLayout and TextMeasurer is trying to compensate for italic overhang to the right that if ignored might mean visually text did not fit into the space it claimed it would occupy. It only needs to pad the rightmost character in the line this way. However if

Re: [JAVA2D] Measuring mixed font text

2006-10-17 Thread Phil Race
PS You could try compensating by that amount and see if it helps. I guess I didn't really finish that thought. I wouldn't compensate in exactly that way - if you did then it would be ignorant of whether we fixed this API to return the logical advance as opposed to the visual advance. What you