Package org.axsl.font

Examples of org.axsl.font.Font.baseline()


            throw new IllegalStateException("Unable to obtain a font for baseline computation.");
        }
        final Font font = fontUse.getFont();
        final Script script = this.traitScript(context);
        final String opentypeScript = FontUtil.getOpenTypeScript(script);
        final Font.Baseline fontBaseline = font.baseline(opentypeScript);
        switch (fontBaseline) {
        case ALPHABETIC: return Baseline.ALPHABETIC;
        case MATH: return Baseline.MATHEMATICAL;
        case HANGING: return Baseline.HANGING;
        case IDEO_BOTTOM_LEFT: return Baseline.TEXT_AFTER_EDGE;
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.