private int charToVisibleWidth(char c,@JdkConstants.FontStyle int fontType,int currentX){
  if (c == '\n') {
    return 0;
  }
  if (c == '\t') {
    return EditorUtil.nextTabStop(currentX,this) - currentX;
  }
  return EditorUtil.charWidth(c,fontType,this);
}

private int charToVisibleWidth ( char c , @ JdkConstants . FontStyle int fontType , int currentX ) { if ( c == '\n' ) { return 0 ; } if ( c == '\t' ) { return EditorUtil . nextTabStop ( currentX , this ) - currentX ; } return EditorUtil . charWidth ( c , fontType , this ) ; }
allows to answer how much width requires given char to be represented on a screen .
