Package org.foray.fotree.fo.obj

Examples of org.foray.fotree.fo.obj.Block.traitFontSizeAdjust()


        assertEquals(426, font.getXHeight(1000));
        final int nominalFontSize = block.traitFontSize(null);
        /* The nominal font-size is 10 pts. */
        assertEquals(10000, nominalFontSize);
        /* The font-size-adjust is .6. */
        final double fontSizeAdjust = block.traitFontSizeAdjust(null);
        assertEquals(.6, fontSizeAdjust, .001);
        /* Actual font size computation, using a basis factor of 1000.
         * 600 / 426 * 10000 = 14085. */
        fontSize = block.traitFontSizeActual(null, font);
        assertEquals(14085, fontSize);
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.