Package org.foray.fotree.fo.obj

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


        final Flow flow = this.getFlow(foTree);

        FObj node = flow.getChildAt(0);
        assertTrue(node instanceof Block);
        Block block = (Block) node;
        int fontSize = block.traitFontSize(null);
        /* The default font size is 12 points. */
        assertEquals(12000, fontSize);

        node = flow.getChildAt(1);
        assertTrue(node instanceof Block);
View Full Code Here


        assertEquals(12000, fontSize);

        node = flow.getChildAt(1);
        assertTrue(node instanceof Block);
        block = (Block) node;
        fontSize = block.traitFontSize(null);
        assertEquals(8000, fontSize);

        node = flow.getChildAt(2);
        assertTrue(node instanceof Block);
        block = (Block) node;
View Full Code Here

        assertTrue(node instanceof Block);
        block = (Block) node;
        final Font font = node.getPrimaryFont(null).getFont();
        assertEquals("Courier", font.getFamilyName());
        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);
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.