Package org.foray.area

Examples of org.foray.area.InlineArea.baselineY()


        /* The second child of the line area is an inline-area. */
        node = lineArea.getChildAt(1);
        assertTrue(node instanceof InlineArea);
        final InlineArea inlineArea = (InlineArea) node;
        final int inlineY = inlineArea.baselineY();

        /* The current algorithm for computing the "super" baseline shift for the Base14-Courier
         * font is 2/3 of the font's ascender, which, per the AFM file is 629. */
        final int adjustment = Math.round(629 * 12 * 2 / 3);
        final int expectedInlineY = lineY + adjustment;
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.