String c = font.encode( string, i, codeLength );
if( c == null && i+1<string.length)
{
//maybe a multibyte encoding
codeLength++;
c = font.encode( string, i, codeLength );
}
c = inspectFontEncoding(c);
//todo, handle horizontal displacement
// get the width and height of this character in text units