public OpenTypeParser(String name) throws java.io.IOException { String ttcName = getTTCName(name); this.fileName = ttcName; if (ttcName.length() < name.length()) { ttcIndex = Integer.parseInt(name.substring(ttcName.length() + 1)); } raf = new RandomAccessFileOrArray(new RandomAccessSourceFactory().createBestSource(fileName)); initializeSfntTables(); }
public OpenTypeParser(String name) throws java.io.IOException { String ttcName = getTTCName(name); this.fileName = ttcName; if (ttcName.length() < name.length()) { ttcIndex = Integer.parseInt(name.substring(ttcName.length() + 1)); } raf = new RandomAccessFileOrArray(new RandomAccessSourceFactory().createBestSource(fileName)); initializeSfntTables(); }