/** * Creates a new TrueTypeCollection from a .ttc input stream. * * @param stream A TTC input stream. * @throws IOException If the font could not be parsed. */ public TrueTypeCollection(InputStream stream) throws IOException { this(new MemoryTTFDataStream(stream)); }
/** * Parse an input stream and return a TrueType font that is to be embedded. * * @param inputStream The TTF data stream to parse from. It will be closed before returning. * @return A TrueType font. * @throws IOException If there is an error parsing the TrueType font. */ public TrueTypeFont parseEmbedded(InputStream inputStream) throws IOException { this.isEmbedded = true; return parse(new MemoryTTFDataStream(inputStream)); }
/** * Parse an input stream and return a TrueType font. * * @param inputStream The TTF data stream to parse from. It will be closed before returning. * @return A TrueType font. * @throws IOException If there is an error parsing the TrueType font. */ public TrueTypeFont parse(InputStream inputStream) throws IOException { return parse(new MemoryTTFDataStream(inputStream)); }
/** * Creates a new TrueTypeCollection from a .ttc input stream. * * @param stream A TTC input stream. * @throws IOException If the font could not be parsed. */ public TrueTypeCollection(InputStream stream) throws IOException { this(new MemoryTTFDataStream(stream)); }
/** * Creates a new TrueTypeCollection from a .ttc input stream. * * @param stream A TTC input stream. * @throws IOException If the font could not be parsed. */ public TrueTypeCollection(InputStream stream) throws IOException { this(new MemoryTTFDataStream(stream)); }
/** * Parse an input stream and return a TrueType font that is to be embedded. * * @param inputStream The TTF data stream to parse from. It will be closed before returning. * @return A TrueType font. * @throws IOException If there is an error parsing the TrueType font. */ public TrueTypeFont parseEmbedded(InputStream inputStream) throws IOException { this.isEmbedded = true; return parse(new MemoryTTFDataStream(inputStream)); }
/** * Parse an input stream and return a TrueType font. * * @param inputStream The TTF data stream to parse from. It will be closed before returning. * @return A TrueType font. * @throws IOException If there is an error parsing the TrueType font. */ public TrueTypeFont parse(InputStream inputStream) throws IOException { return parse(new MemoryTTFDataStream(inputStream)); }
/** * Parse an input stream and return a TrueType font that is to be embedded. * * @param inputStream The TTF data stream to parse from. It will be closed before returning. * @return A TrueType font. * @throws IOException If there is an error parsing the TrueType font. */ public TrueTypeFont parseEmbedded(InputStream inputStream) throws IOException { this.isEmbedded = true; return parse(new MemoryTTFDataStream(inputStream)); }
/** * Parse an input stream and return a TrueType font. * * @param inputStream The TTF data stream to parse from. It will be closed before returning. * @return A TrueType font. * @throws IOException If there is an error parsing the TrueType font. */ public TrueTypeFont parse(InputStream inputStream) throws IOException { return parse(new MemoryTTFDataStream(inputStream)); }