1 18 package org.apache.batik.svggen.font.table; 19 20 import java.io.IOException ; 21 import java.io.RandomAccessFile ; 22 23 28 public class KernTable implements Table { 29 30 private int version; 31 private int nTables; 32 private KernSubtable[] tables; 33 34 35 protected KernTable(DirectoryEntry de, RandomAccessFile raf) throws IOException { 36 raf.seek(de.getOffset()); 37 version = raf.readUnsignedShort(); 38 nTables = raf.readUnsignedShort(); 39 tables = new KernSubtable[nTables]; 40 for (int i = 0; i < nTables; i++) { 41 tables[i] = KernSubtable.read(raf); 42 } 43 } 44 45 public int getSubtableCount() { 46 return nTables; 47 } 48 49 public KernSubtable getSubtable(int i) { 50 return tables[i]; 51 } 52 53 56 public int getType() { 57 return kern; 58 } 59 60 } 61 | Popular Tags |