private int adjustForCache(final int pointer){
  if (fontData == null || pointer < offset || pointer >= (offset + blockSize - 1)) {
    try {
      fontFile.seek(pointer);
      fontData=new byte[blockSize];
      fontFile.read(fontData);
    }
 catch (    final IOException e) {
      LogWriter.writeLog("Exception: " + e.getMessage());
    }
    offset=pointer;
  }
  return pointer - offset;
}

private int adjustForCache ( final int pointer ) { if ( fontData == null || pointer < offset || pointer >= ( offset + blockSize - 1 ) ) { try { fontFile . seek ( pointer ) ; fontData = new byte [ blockSize ] ; fontFile . read ( fontData ) ; } catch ( final IOException e ) { LogWriter . writeLog ( "Exception: " + e . getMessage ( ) ) ; } offset = pointer ; } return pointer - offset ; }
check block in memory , read if not and adjust pointer
