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 LangSys { 29 30 private int lookupOrder; 31 private int reqFeatureIndex; 32 private int featureCount; 33 private int[] featureIndex; 34 35 36 protected LangSys(RandomAccessFile raf) throws IOException { 37 lookupOrder = raf.readUnsignedShort(); 38 reqFeatureIndex = raf.readUnsignedShort(); 39 featureCount = raf.readUnsignedShort(); 40 featureIndex = new int[featureCount]; 41 for (int i = 0; i < featureCount; i++) { 42 featureIndex[i] = raf.readUnsignedShort(); 43 } 44 } 45 46 protected boolean isFeatureIndexed(int n) { 47 for (int i = 0; i < featureCount; i++) { 48 if (featureIndex[i] == n) { 49 return true; 50 } 51 } 52 return false; 53 } 54 55 } 56 57 | Popular Tags |