Examples of shape()


Examples of ae.java.awt.font.NumericShaper.shape()

        baselineOffsets = TextLine.getNormalizedOffsets(lm.baselineOffsets, baseline);

        justifyRatio = AttributeValues.getJustification(paragraphAttrs);
        NumericShaper shaper = AttributeValues.getNumericShaping(paragraphAttrs);
        if (shaper != null) {
            shaper.shape(text, 0, text.length);
        }
    }

    /*
     * the fast init generates a single glyph set.  This requires:
View Full Code Here

Examples of com.fasterxml.jackson.annotation.JsonFormat.shape()

            if ( !Strings.isNullOrEmpty( format.pattern() ) ) {
                source.println();
                source.print( ".setPattern(\"%s\")", format.pattern() );
            }
            source.println();
            source.print( ".setShape(%s.%s)", Shape.class.getCanonicalName(), format.shape().name() );
            if ( !Strings.isNullOrEmpty( format.locale() ) && !JsonFormat.DEFAULT_LOCALE.equals( format.locale() ) ) {
                logger.log( Type.WARN, "JsonFormat.locale is not supported by default" );
                source.println();
                source.print( ".setLocale(\"%s\")", format.locale() );
            }
View Full Code Here

Examples of com.ibm.icu.text.ArabicShaping.shape()

        try {
            switch (testtype) {
            case COPY:
                dest = new char[ds + dl];
                result = shaper.shape(src, ss, sl, dest, ds, dl);
                break;

            case INPLACE:
                shaper.shape(src, ss, sl);
                ds = ss;
View Full Code Here

Examples of com.ibm.icu.text.ArabicShaping.shape()

                dest = new char[ds + dl];
                result = shaper.shape(src, ss, sl, dest, ds, dl);
                break;

            case INPLACE:
                shaper.shape(src, ss, sl);
                ds = ss;
                result = sl;
                dest = src;
                break;
View Full Code Here

Examples of com.ibm.icu.text.ArabicShaping.shape()

                result = sl;
                dest = src;
                break;

            case STRING:
                dest = shaper.shape(text).toCharArray();
                ds = 0;
                result = dest.length;
                break;
            }
View Full Code Here

Examples of com.ibm.icu.text.ArabicShaping.shape()

            String result = null;
            ArabicShaping shaper = null;

            try {
                shaper = new ArabicShaping(test.flags);
                result = shaper.shape(test.source);
            }
            catch(MissingResourceException e){
                throw e;
            }
            catch (IllegalStateException ie){
View Full Code Here

Examples of com.ibm.icu.text.ArabicShaping.shape()

                src = test.source.toCharArray();
            }

            try {
                shaper = new ArabicShaping(test.flags);
                len = shaper.shape(src, 0, src.length, null, 0, 0);
            }
            catch (Exception e) {
                ex = e;
            }
View Full Code Here

Examples of com.ibm.icu.text.ArabicShaping.shape()

                len = src.length;
            }

            try {
                shaper = new ArabicShaping(test.flags);
                shaper.shape(src, 0, len);
            }
            catch (Exception e) {
                ex = e;
            }
View Full Code Here

Examples of com.lowagie.text.pdf.ArabicShaping.shape()

            for (j = 0; j < childCount; j++) {
        child = childs.item(j);
        if(child.getNodeType() == Node.TEXT_NODE) {
          if((child.getNodeValue().replaceAll(" ", "").length() > 1)) {
            value = childs.item(j).getNodeValue();
            value = arabicshaper.shape(value);
            value = invertArabic(value);
            /*reversed = "";
            for(m = value.length()-1; m >= 0; m--) {
              reversed += value.charAt(m);
            }*/
 
View Full Code Here

Examples of java.awt.font.NumericShaper.shape()

        baselineOffsets = TextLine.getNormalizedOffsets(lm.baselineOffsets, baseline);
       
        justifyRatio = AttributeValues.getJustification(paragraphAttrs);
        NumericShaper shaper = AttributeValues.getNumericShaping(paragraphAttrs);
        if (shaper != null) {
            shaper.shape(text, 0, text.length);
        }
    }

    /*
     * the fast init generates a single glyph set.  This requires:
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.