R
rico
When the Glyphvector returned by the method
Font.createGlyphVector(frc, String) is displayed, leading spaces are
trimmed and this is a problem because I need to map coordinates in pixels
to characters in a String.
At a suitable breakpoint, I analyse the GlyphVector object and see that the
glyph code for space character is equal to 3 and for 'L' it's 47, 'E' is
40...
From the documentation this is the one-to-one mapping to the font's
(Courier) Unicode cmap. But u0003 I believe is a control character,
i.e END OF TEXT and 'L' is u004C, i.e 76 , and 'E' is u0045, i.e 69...
Am I misinterpreting the values in the int[ ] , glyphs , in the GlyphVector
object?
The String " L E" is displayed as "L E", even though all spaces are coded as
3 ...
What are these values that the Eclipse debugger is giving me? Thanks.
Rico
Font.createGlyphVector(frc, String) is displayed, leading spaces are
trimmed and this is a problem because I need to map coordinates in pixels
to characters in a String.
At a suitable breakpoint, I analyse the GlyphVector object and see that the
glyph code for space character is equal to 3 and for 'L' it's 47, 'E' is
40...
From the documentation this is the one-to-one mapping to the font's
(Courier) Unicode cmap. But u0003 I believe is a control character,
i.e END OF TEXT and 'L' is u004C, i.e 76 , and 'E' is u0045, i.e 69...
Am I misinterpreting the values in the int[ ] , glyphs , in the GlyphVector
object?
The String " L E" is displayed as "L E", even though all spaces are coded as
3 ...
What are these values that the Eclipse debugger is giving me? Thanks.
Rico