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:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class UIFont extends NSObject
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIFont.UIFontPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UIFont()
protected
UIFont(NSObject.Handle h, long handle)
protected
UIFont(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAscender()
static UIFont
getBoldSystemFont(double fontSize)
static double
getButtonFontSize()
double
getCapHeight()
double
getDescender()
java.lang.String
getFamilyName()
static java.util.List<java.lang.String>
getFamilyNames()
static UIFont
getFont(java.lang.String fontName, double fontSize)
static UIFont
getFont(UIFontDescriptor descriptor, double pointSize)
UIFontDescriptor
getFontDescriptor()
java.lang.String
getFontName()
static java.util.List<java.lang.String>
getFontNamesForFamilyName(java.lang.String familyName)
static UIFont
getItalicSystemFont(double fontSize)
static double
getLabelFontSize()
double
getLeading()
double
getLineHeight()
static UIFont
getMonospacedDigitSystemFont(double fontSize, double weight)
double
getPointSize()
static UIFont
getPreferredFont(UIFontTextStyle style)
static UIFont
getPreferredFont(UIFontTextStyle style, UITraitCollection traitCollection)
static double
getSmallSystemFontSize()
static UIFont
getSystemFont(double fontSize)
static UIFont
getSystemFont(double fontSize, double weight)
static UIFont
getSystemFont(double fontSize, UIFontWeight weight)
static double
getSystemFontSize()
double
getXHeight()
UIFont
newWithSize(double fontSize)
-
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, willChangeValues
-
-
-
-
Constructor Detail
-
UIFont
public UIFont()
-
UIFont
protected UIFont(NSObject.Handle h, long handle)
-
UIFont
protected UIFont(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getFamilyNames
public static java.util.List<java.lang.String> getFamilyNames()
-
getFamilyName
public java.lang.String getFamilyName()
-
getFontName
public java.lang.String 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()
- Since:
- Available in iOS 4.0 and later.
-
getLeading
public double getLeading()
-
getFontDescriptor
public UIFontDescriptor getFontDescriptor()
- Since:
- Available in iOS 7.0 and later.
-
getLabelFontSize
public static double getLabelFontSize()
-
getButtonFontSize
public static double getButtonFontSize()
-
getSmallSystemFontSize
public static double getSmallSystemFontSize()
-
getSystemFontSize
public static double getSystemFontSize()
-
getSystemFont
public static UIFont getSystemFont(double fontSize, UIFontWeight weight)
- Since:
- Available in iOS 8.2 and later.
-
newWithSize
public UIFont newWithSize(double fontSize)
-
getPreferredFont
public static UIFont getPreferredFont(UIFontTextStyle style)
- Since:
- Available in iOS 7.0 and later.
-
getPreferredFont
public static UIFont getPreferredFont(UIFontTextStyle style, UITraitCollection traitCollection)
- Since:
- Available in iOS 10.0 and later.
-
getFont
public static UIFont getFont(java.lang.String fontName, double fontSize)
-
getFontNamesForFamilyName
public static java.util.List<java.lang.String> getFontNamesForFamilyName(java.lang.String familyName)
-
getSystemFont
public static UIFont getSystemFont(double fontSize)
-
getBoldSystemFont
public static UIFont getBoldSystemFont(double fontSize)
-
getItalicSystemFont
public static UIFont getItalicSystemFont(double fontSize)
-
getSystemFont
public static UIFont getSystemFont(double fontSize, double weight)
- Since:
- Available in iOS 8.2 and later.
-
getMonospacedDigitSystemFont
public static UIFont getMonospacedDigitSystemFont(double fontSize, double weight)
- Since:
- Available in iOS 9.0 and later.
-
getFont
public static UIFont getFont(UIFontDescriptor descriptor, double pointSize)
- Since:
- Available in iOS 7.0 and later.
-
-