Examples of GlyphDefinitionTable


Examples of org.apache.fop.complexscripts.fonts.GlyphDefinitionTable

        if ( td.length > 1 ) {
            String fid = (String) td[0];
            String lid = (String) td[1];
            TTXFile tf = findTTX ( fid );
            assertTrue ( tf != null );
            GlyphDefinitionTable gdef = tf.getGDEF();
            assertTrue ( gdef != null );
            String[][] tia = (String[][]) td[2];
            switch ( (int) ( (Integer) tp[0] ) ) {
            case GlyphDefinitionTable.GDEF_LOOKUP_TYPE_GLYPH_CLASS:
                performGlyphClassLookups ( tf, lid, tia );
View Full Code Here

Examples of org.apache.fop.complexscripts.fonts.GlyphDefinitionTable

            }
        }
    }

    private void performGlyphClassLookups ( TTXFile tf, String lid, String[][] tia ) {
        GlyphDefinitionTable gdef = tf.getGDEF();
        assert gdef != null;
        for ( String[] ti : tia ) {
            assert ti != null;
            assert ti.length > 1;
            String gn = ti[0];
            assert gn != null;
            String cn = ti[1];
            assert cn != null;
            int g = tf.getGlyph ( gn );
            assertTrue ( g >= 0 );
            int oc = Integer.parseInt ( cn );
            int tc = gdef.getGlyphClass ( g );
            assertEquals ( "bad glyph class for glyph \'" + gn + "\', gid(" + g + ")", oc, tc );
        }
    }
View Full Code Here

Examples of org.apache.fop.complexscripts.fonts.GlyphDefinitionTable

                    features.put ( fid, extractFeature() );
                    nextFeature();
                }
            } else if ( en[1].equals ( "GDEF" ) ) {
                if ( subtables.size() > 0 ) {
                    gdef = new GlyphDefinitionTable ( subtables );
                }
                clearTable();
            } else if ( en[1].equals ( "GPOS" ) ) {
                if ( subtables.size() > 0 ) {
                    gpos = new GlyphPositioningTable ( gdef, extractLookups(), subtables );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.