/** Enumerates the postscript font names present inside a * True Type Collection. * @param ttcArray the font as a <CODE>byte</CODE> array * @throws DocumentException on error * @throws IOException on error * @return the postscript font names */ public static String[] enumerateTTCNames(byte ttcArray[]) throws DocumentException, IOException { return new EnumerateTTC(ttcArray).getNames(); }
String mainTag = readStandardString(4); if (!mainTag.equals("ttcf")) throw new DocumentException(fileName + " is not a valid TTC file."); rf.skipBytes(6); for (int k = 0; k < num_tables; ++k) { String tag = readStandardString(4); rf.skipBytes(4); int table_location[] = new int[2]; tables.put(tag, table_location); names[dirIdx] = getBaseFont();
EnumerateTTC(byte ttcArray[]) throws DocumentException, IOException { fileName = "Byte array TTC"; rf = new RandomAccessFileOrArray(ttcArray); findNames(); }
String mainTag = readStandardString(4); if (!mainTag.equals("ttcf")) throw new DocumentException(MessageLocalization.getComposedMessage("1.is.not.a.valid.ttc.file", fileName)); rf.skipBytes(6); for (int k = 0; k < num_tables; ++k) { String tag = readStandardString(4); rf.skipBytes(4); int table_location[] = new int[2]; tables.put(tag, table_location); names[dirIdx] = getBaseFont();
EnumerateTTC(String ttcFile) throws DocumentException, IOException { fileName = ttcFile; rf = new RandomAccessFileOrArray(ttcFile); findNames(); }
/** Enumerates the postscript font names present inside a * True Type Collection. * @param ttcArray the font as a <CODE>byte</CODE> array * @throws DocumentException on error * @throws IOException on error * @return the postscript font names */ public static String[] enumerateTTCNames(byte ttcArray[]) throws DocumentException, IOException { return new EnumerateTTC(ttcArray).getNames(); }
String mainTag = readStandardString(4); if (!mainTag.equals("ttcf")) throw new DocumentException(MessageLocalization.getComposedMessage("1.is.not.a.valid.ttc.file", fileName)); rf.skipBytes(6); for (int k = 0; k < num_tables; ++k) { String tag = readStandardString(4); rf.skipBytes(4); int[] table_location = new int[2]; tables.put(tag, table_location); names[dirIdx] = getBaseFont();
EnumerateTTC(byte[] ttcArray) throws DocumentException, IOException { fileName = "Byte array TTC"; rf = new RandomAccessFileOrArray(ttcArray); findNames(); }
/** Enumerates the postscript font names present inside a * True Type Collection. * @param ttcFile the file name of the font * @throws DocumentException on error * @throws IOException on error * @return the postscript font names */ public static String[] enumerateTTCNames(String ttcFile) throws DocumentException, IOException { return new EnumerateTTC(ttcFile).getNames(); }
EnumerateTTC(String ttcFile) throws DocumentException, IOException { fileName = ttcFile; rf = new RandomAccessFileOrArray(ttcFile); findNames(); }
/** Enumerates the postscript font names present inside a * True Type Collection. * @param ttcFile the file name of the font * @throws DocumentException on error * @throws IOException on error * @return the postscript font names */ public static String[] enumerateTTCNames(String ttcFile) throws DocumentException, IOException { return new EnumerateTTC(ttcFile).getNames(); }
EnumerateTTC(byte ttcArray[]) throws DocumentException, IOException { fileName = "Byte array TTC"; rf = new RandomAccessFileOrArray(ttcArray); findNames(); }
/** * Enumerates the postscript font names present inside a True Type * Collection. * * @param ttcArray * the font as a <CODE>byte</CODE> array * @throws DocumentException * on error * @throws IOException * on error * @return the postscript font names */ public static String[] enumerateTTCNames(byte[] ttcArray) throws DocumentException, IOException { return new EnumerateTTC(ttcArray).getNames(); }
EnumerateTTC(String ttcFile) throws DocumentException, IOException { fileName = ttcFile; rf = new RandomAccessFileOrArray(ttcFile); findNames(); }
/** * Enumerates the postscript font names present inside a True Type * Collection. * * @param ttcFile * the file name of the font * @throws DocumentException * on error * @throws IOException * on error * @return the postscript font names */ public static String[] enumerateTTCNames(String ttcFile) throws DocumentException, IOException { return new EnumerateTTC(ttcFile).getNames(); }