Examples of mightHaveMultiFontMetrics()


Examples of sun.awt.PlatformFont.mightHaveMultiFontMetrics()

     * Return the width of the specified char[] in this Font.
     */
    public int charsWidth(char chars[], int offset, int length) {
        Font font = getFont();
        PlatformFont pf = ((PlatformFont) font.getPeer());
        if (pf.mightHaveMultiFontMetrics()) {
            return getMFCharsWidth(chars, offset, length, font);
        } else {
            if (widths != null) {
                int w = 0;
                for (int i = offset; i < offset + length; i++) {
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.