/** * Read the FDSelect Data according to the format. * @param dataInput * @param nGlyphs * @param ros * @return the FDSelect data * @throws IOException */ private static FDSelect readFDSelect(CFFDataInput dataInput, int nGlyphs, CFFCIDFont ros) throws IOException { int format = dataInput.readCard8(); switch (format) { case 0: return readFormat0FDSelect(dataInput, format, nGlyphs, ros); case 3: return readFormat3FDSelect(dataInput, format, nGlyphs, ros); default: throw new IllegalArgumentException(); } }
/** * Read the FDSelect Data according to the format. * @param dataInput * @param nGlyphs * @param ros * @return the FDSelect data * @throws IOException */ private static FDSelect readFDSelect(CFFDataInput dataInput, int nGlyphs, CFFCIDFont ros) throws IOException { int format = dataInput.readCard8(); switch (format) { case 0: return readFormat0FDSelect(dataInput, format, nGlyphs, ros); case 3: return readFormat3FDSelect(dataInput, format, nGlyphs, ros); default: throw new IllegalArgumentException(); } }
/** * Read the FDSelect Data according to the format. * @param dataInput * @param nGlyphs * @param ros * @return the FDSelect data * @throws IOException */ private static FDSelect readFDSelect(CFFDataInput dataInput, int nGlyphs, CFFCIDFont ros) throws IOException { int format = dataInput.readCard8(); switch (format) { case 0: return readFormat0FDSelect(dataInput, format, nGlyphs, ros); case 3: return readFormat3FDSelect(dataInput, format, nGlyphs, ros); default: throw new IllegalArgumentException(); } }