When the Glyphvector returned by the method Font.createGlyphVector(frc,
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
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
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
The String " L E" is displayed as "L E", even though all spaces are coded as
What are these values that the Eclipse debugger is giving me? Thanks.
||8/25/2003 7:04:06 AM