Examples of traitHalfLeadingMax()


Examples of org.foray.fotree.FObj.traitHalfLeadingMax()

    public void testLength() throws PropertyException {
        final FObj fobj = makeTestFObj();
        final PropertyList propertyList = fobj.getPropertyList();
        final PdLineHeight lh = new PdLineHeight(fobj, "", "3.7cm");
        propertyList.addProperty(fobj, lh);
        final int halfLeadingMax = fobj.traitHalfLeadingMax(STD_FO_CONTEXT);
        /* D = Distance between baselines = 3.7cm = 104,882 millipoints.
         * L = Leading = D - the default font size of 12,000 = 92,882
         * millipoints.
         * HL = L / 2 = 46,441 millipoints. */
        assertEquals(46441, halfLeadingMax);
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.