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 ClassDefFormat1 extends ClassDef { 29 30 private int startGlyph; 31 private int glyphCount; 32 private int[] classValues; 33 34 35 public ClassDefFormat1(RandomAccessFile raf) throws IOException { 36 startGlyph = raf.readUnsignedShort(); 37 glyphCount = raf.readUnsignedShort(); 38 classValues = new int[glyphCount]; 39 for (int i = 0; i < glyphCount; i++) { 40 classValues[i] = raf.readUnsignedShort(); 41 } 42 } 43 44 public int getFormat() { 45 return 1; 46 } 47 48 } 49 | Popular Tags |