Examples of traitFontSizeActual()


Examples of org.axsl.fo.fo.CharacterSequence.traitFontSizeActual()

     * {@inheritDoc}
     * Overrides the Area method because it needs to handle faux-small-caps.
     */
    public int traitFontSize() {
        final CharacterSequence generatedBy = this.traitGeneratedBy();
        final int nominalFontSize = generatedBy.traitFontSizeActual(this,
                this.getPrimaryFont().getFont());
        if (this.hasFauxSmallCaps()) {
            final FontUse fontUse = getPrimaryFont();
            return fontUse.smallCapsSize(nominalFontSize);
        }
View Full Code Here

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

        /* 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.