public float getCharPosition ( String str , FontOptions options , int position , int charOffset ) { if ( StringUtils . isEmpty ( str ) ) return 0 ; str = processString ( str , options ) ; //float fx = position / (fro != null ? fro.fontScale : 1); //factor the position instead of the char widths StringWalker walker = new StringWalker ( str , options ) ; //walker.startIndex(charOffset); walker . skipChars ( true ) ; return 0 ; //walker.walkToCoord(position); }
Determines the character for a given X coordinate .