Package org.robovm.apple.uikit
Class UIFont
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UIFont
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
public class UIFont extends NSObject implements NSSecureCoding
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIFont.UIFontPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description UIFont()UIFont(NSCoder coder)protectedUIFont(NSObject.Handle h, long handle)protectedUIFont(NSObject.SkipInit skipInit) -
Method Summary
Modifier and Type Method Description voidencode(NSCoder coder)doublegetAscender()static UIFontgetBoldSystemFont(double fontSize)static doublegetButtonFontSize()doublegetCapHeight()doublegetDescender()StringgetFamilyName()static List<String>getFamilyNames()static UIFontgetFont(String fontName, double fontSize)static UIFontgetFont(UIFontDescriptor descriptor, double pointSize)UIFontDescriptorgetFontDescriptor()StringgetFontName()static List<String>getFontNamesForFamilyName(String familyName)static UIFontgetItalicSystemFont(double fontSize)static doublegetLabelFontSize()doublegetLeading()doublegetLineHeight()static UIFontgetMonospacedDigitSystemFont(double fontSize, double weight)static UIFontgetMonospacedSystemFont(double fontSize, double weight)doublegetPointSize()static UIFontgetPreferredFont(UIFontTextStyle style)static UIFontgetPreferredFont(UIFontTextStyle style, UITraitCollection traitCollection)static doublegetSmallSystemFontSize()static UIFontgetSystemFont(double fontSize)static UIFontgetSystemFont(double fontSize, double weight)static UIFontgetSystemFont(double fontSize, UIFontWeight weight)static doublegetSystemFontSize()doublegetXHeight()protected longinit(NSCoder coder)UIFontnewWithSize(double fontSize)static booleansupportsSecureCoding()Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
Method Details
-
getFamilyNames
-
getFamilyName
-
getFontName
-
getPointSize
public double getPointSize() -
getAscender
public double getAscender() -
getDescender
public double getDescender() -
getCapHeight
public double getCapHeight() -
getXHeight
public double getXHeight() -
getLineHeight
public double getLineHeight() -
getLeading
public double getLeading() -
getFontDescriptor
-
getLabelFontSize
public static double getLabelFontSize() -
getButtonFontSize
public static double getButtonFontSize() -
getSmallSystemFontSize
public static double getSmallSystemFontSize() -
getSystemFontSize
public static double getSystemFontSize() -
supportsSecureCoding
public static boolean supportsSecureCoding() -
getSystemFont
- Since:
- Available in iOS 8.2 and later.
-
newWithSize
-
getPreferredFont
-
getPreferredFont
- Since:
- Available in iOS 10.0 and later.
-
getFont
-
getFontNamesForFamilyName
-
getSystemFont
-
getBoldSystemFont
-
getItalicSystemFont
-
getSystemFont
- Since:
- Available in iOS 8.2 and later.
-
getMonospacedDigitSystemFont
- Since:
- Available in iOS 9.0 and later.
-
getMonospacedSystemFont
- Since:
- Available in iOS 13.0 and later.
-
getFont
-
encode
-
init
-