1 51 package org.apache.fop.fonts; 52 53 import java.io.*; 54 55 class TTFDirTabEntry { 56 byte[] tag; 57 int checksum; 58 long offset; 59 long length; 60 61 TTFDirTabEntry() { 62 tag = new byte[4]; 63 } 64 65 68 public String read(FontFileReader in) throws IOException { 69 tag[0] = in.readTTFByte(); 70 tag[1] = in.readTTFByte(); 71 tag[2] = in.readTTFByte(); 72 tag[3] = in.readTTFByte(); 73 74 in.skip(4); 76 offset = in.readTTFULong(); 77 length = in.readTTFULong(); 78 79 88 return new String (tag, "ISO-8859-1"); 89 } 90 91 } 92 | Popular Tags |