Package org.apache.fop.complexscripts.util

Examples of org.apache.fop.complexscripts.util.GlyphTester


        static boolean matches ( GlyphPositioningState ps, int[] glyphs, int offset, int[] rv ) {
            if ( ( glyphs == null ) || ( glyphs.length == 0 ) ) {
                return true;                            // match null or empty glyph sequence
            } else {
                boolean reverse = offset < 0;
                GlyphTester ignores = ps.getIgnoreDefault();
                int[] counts = ps.getGlyphsAvailable ( offset, reverse, ignores );
                int nga = counts[0];
                int ngm = glyphs.length;
                if ( nga < ngm ) {
                    return false;                       // insufficient glyphs available to match
View Full Code Here


        static boolean matches ( GlyphPositioningState ps, GlyphClassTable cdt, int[] classes, int offset, int[] rv ) {
            if ( ( cdt == null ) || ( classes == null ) || ( classes.length == 0 ) ) {
                return true;                            // match null class definitions, null or empty class sequence
            } else {
                boolean reverse = offset < 0;
                GlyphTester ignores = ps.getIgnoreDefault();
                int[] counts = ps.getGlyphsAvailable ( offset, reverse, ignores );
                int nga = counts[0];
                int ngm = classes.length;
                if ( nga < ngm ) {
                    return false;                       // insufficient glyphs available to match
View Full Code Here

        static boolean matches ( GlyphPositioningState ps, GlyphCoverageTable[] gca, int offset, int[] rv ) {
            if ( ( gca == null ) || ( gca.length == 0 ) ) {
                return true;                            // match null or empty coverage array
            } else {
                boolean reverse = offset < 0;
                GlyphTester ignores = ps.getIgnoreDefault();
                int[] counts = ps.getGlyphsAvailable ( offset, reverse, ignores );
                int nga = counts[0];
                int ngm = gca.length;
                if ( nga < ngm ) {
                    return false;                       // insufficient glyphs available to match
View Full Code Here

        this.feature = feature;
        this.igs = gs;
        this.indexLast = gs.getGlyphCount();
        this.sct = sct;
        this.gct = ( sct != null ) ? sct.getTester ( feature ) : null;
        this.ignoreBase = new GlyphTester() { public boolean test(int gi, int flags) { return isIgnoredBase(gi, flags); } };
        this.ignoreLigature = new GlyphTester() { public boolean test(int gi, int flags) { return isIgnoredLigature(gi, flags); } };
        this.ignoreMark = new GlyphTester() { public boolean test(int gi, int flags) { return isIgnoredMark(gi, flags); } };
    }
View Full Code Here

            this.ngt = ngt;
        }
        /** {@inheritDoc} */
        public boolean test ( int gi, int flags ) {
            for ( int i = 0, n = ngt; i < n; i++ ) {
                GlyphTester gt = gta [ i ];
                if ( gt != null ) {
                    if ( gt.test ( gi, flags ) ) {
                        return true;
                    }
                }
            }
            return false;
View Full Code Here

            this.ngt = ngt;
        }
        /** {@inheritDoc} */
        public boolean test ( int gi, int flags ) {
            for ( int i = 0, n = ngt; i < n; i++ ) {
                GlyphTester gt = gta [ i ];
                if ( gt != null ) {
                    if ( ! gt.test ( gi, flags ) ) {
                        return false;
                    }
                }
            }
            return true;
View Full Code Here

                return false;
            } else {
                LigatureSet ls = getLigatureSetForCoverageIndex ( ci, gi );
                if ( ls != null ) {
                    boolean reverse = false;
                    GlyphTester ignores = ss.getIgnoreDefault();
                    int[] counts = ss.getGlyphsAvailable ( 0, reverse, ignores );
                    int nga = counts[0];
                    int ngi;
                    if ( nga > 1 ) {
                        int[] iga = ss.getGlyphs ( 0, nga, reverse, ignores, null, counts );
View Full Code Here

        static boolean matches ( GlyphSubstitutionState ss, int[] glyphs, int offset, int[] rv ) {
            if ( ( glyphs == null ) || ( glyphs.length == 0 ) ) {
                return true;                            // match null or empty glyph sequence
            } else {
                boolean reverse = offset < 0;
                GlyphTester ignores = ss.getIgnoreDefault();
                int[] counts = ss.getGlyphsAvailable ( offset, reverse, ignores );
                int nga = counts[0];
                int ngm = glyphs.length;
                if ( nga < ngm ) {
                    return false;                       // insufficient glyphs available to match
View Full Code Here

        static boolean matches ( GlyphSubstitutionState ss, GlyphClassTable cdt, int[] classes, int offset, int[] rv ) {
            if ( ( cdt == null ) || ( classes == null ) || ( classes.length == 0 ) ) {
                return true;                            // match null class definitions, null or empty class sequence
            } else {
                boolean reverse = offset < 0;
                GlyphTester ignores = ss.getIgnoreDefault();
                int[] counts = ss.getGlyphsAvailable ( offset, reverse, ignores );
                int nga = counts[0];
                int ngm = classes.length;
                if ( nga < ngm ) {
                    return false;                       // insufficient glyphs available to match
View Full Code Here

        static boolean matches ( GlyphSubstitutionState ss, GlyphCoverageTable[] gca, int offset, int[] rv ) {
            if ( ( gca == null ) || ( gca.length == 0 ) ) {
                return true;                            // match null or empty coverage array
            } else {
                boolean reverse = offset < 0;
                GlyphTester ignores = ss.getIgnoreDefault();
                int[] counts = ss.getGlyphsAvailable ( offset, reverse, ignores );
                int nga = counts[0];
                int ngm = gca.length;
                if ( nga < ngm ) {
                    return false;                       // insufficient glyphs available to match
View Full Code Here

TOP

Related Classes of org.apache.fop.complexscripts.util.GlyphTester

Copyright © 2018 www.massapicom. 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.