Package sun.awt.font

Examples of sun.awt.font.FontDesignMetrics


    public static FontDesignMetrics metricsCache[] = new FontDesignMetrics[5];

    public synchronized static FontMetrics
        makeFontMetrics(Font font, FontRenderContext frc)
    {
        FontDesignMetrics fdm = null;
        int i;
        for (i = 0; i < metricsCache.length; ++i) {
            FontDesignMetrics tfdm = metricsCache[i];
            if (tfdm == null) {
                break;
            }
            if (tfdm.getFont().equals(font) && tfdm.getFRC().equals(frc)) {
                fdm = tfdm;
                break;
            }
        }
        if (fdm == null) {
            fdm = new FontDesignMetrics(font, frc);
            if (i == metricsCache.length) {
                --i;
            }
        }
        if (i > 0) {
View Full Code Here

TOP

Related Classes of sun.awt.font.FontDesignMetrics

Copyright © 2018 www.massapicom. 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.