src/java/org/apache/fop/fonts/truetype/OTFSubSetFile.java
void readFont(FontFileReader in, String embeddedName, String header,
            Map<Integer, Integer> usedGlyphs) throws IOException {
        fontFile = in;

        currentPos = 0;
        realSize = 0;

        this.embeddedName = embeddedName;

        //Sort by the new GID and store in a LinkedHashMap
        subsetGlyphs = sortByValue(usedGlyphs);

        output = new byte[in.getFileSize()];

        initializeFont(in);

        cffReader = new CFFDataReader(fontFile);

        //Create the CIDFontType0C data
        createCFF();
    }
/**
     * Reads and creates a subset of the font.
     *
     * @param in FontFileReader to read from
     * @param name Name to be checked for in the font file
     * @param header The header of the font file
     * @param glyphs Map of glyphs (glyphs has old index as (Integer) key and
     * new index as (Integer) value)
     * @throws IOException in case of an I/O problem
     */
Reads and creates a subset of the font.
Reads and creates a subset of the font .
void readFont(FontFileReader in, String embeddedName, String header,
            Map<Integer, Integer> usedGlyphs) throws IOException {
        fontFile = in;
        currentPos = 0;
        realSize = 0;
        this.embeddedName = embeddedName;
        subsetGlyphs = sortByValue(usedGlyphs);
        output = new byte[in.getFileSize()];
        initializeFont(in);
        cffReader = new CFFDataReader(fontFile);
        createCFF();
    }
void readFont ( FontFileReader in , String embeddedName , String header , Map < Integer , Integer > usedGlyphs ) throws IOException { fontFile = in ; currentPos = 0 ; realSize = 0 ; this . embeddedName = embeddedName ; subsetGlyphs = sortByValue ( usedGlyphs ) ; output = new byte [ in . getFileSize ( ) ] ; initializeFont ( in ) ; cffReader = new CFFDataReader ( fontFile ) ; createCFF ( ) ; }
Reads and creates a subset of the font.
Reads and creates a subset of the font .
//Sort by the new GID and store in a LinkedHashMap //Create the CIDFontType0C data