Examples of UIFont


Examples of cli.MonoTouch.UIKit.UIFont

    public UIFont getUIFont (Font font) {
        if (font == null) font = IOSFont.defaultFont();

        String iosName = ((IOSFont)font).iosName();
        UIFont uiFont = UIFont.FromName(iosName, font.size());
        if (uiFont != null) return uiFont;

        if (iosName.equals(IOSFont.defaultFont().iosName())) {
            log.warning("Font shenanigans, default font not found!", "font", font);
            return null;
View Full Code Here

Examples of cli.MonoTouch.UIKit.UIFont

    @Override protected void adjustBounds (RectangleF fieldBounds) {
        // field fudged to the left 1 pixel to match PlayN text rendering.
        fieldBounds.set_X(fieldBounds.get_X() + 1);

        // ensure we're tall enough for a single line of text and the text cursor
        UIFont font = getNativeFont();
        if (fieldBounds.get_Height() < font.get_LineHeight()) {
            fieldBounds.set_Height(font.get_LineHeight());
        }
    }
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.