public class UIFont extends NSObject
Modifier and Type | Method and Description |
---|---|
double |
ascender()
Returns the ascent of this font.
|
static UIFont |
boldSystemFontOfSize(double fontSize)
Returns a font object with default font family, size that is defined and
type bold.
|
static double |
buttonFontSize()
Returns a number that represents the default font size for buttons.
|
double |
capHeight()
Returns the cap height of the font.
|
double |
descender()
Returns the decent of this font.
|
String |
familyName()
Returns the name of font family.
|
static List<String> |
familyNames() |
String |
fontName()
Returns the name of the font.
|
static List<String> |
fontNamesForFamilyName(String familyName) |
static UIFont |
fontWithName(String fontName,
double fontSize)
Returns a font object with the defined font and size.
|
UIFont |
fontWithSize(double fontSize)
Returns a font object which is the same with this object and new size is
passed as parameter.
|
static UIFont |
italicSystemFontOfSize(double fontSize)
Returns a font object with default font family, size that is defined and
type italic.
|
static double |
labelFontSize()
Returns a number that represents the default font size for labels.
|
double |
leading()
Returns the leading space of the font.
|
double |
lineHeight() |
double |
pointSize()
Returns a number that represents the point size for this object.
|
static double |
smallSystemFontSize()
Returns a number that represents the default small size of font for this
system.
|
static UIFont |
systemFontOfSize(double fontSize)
Returns a font object with default font family and size that is defined.
|
static double |
systemFontSize()
Returns a number that represents the default size of font for this
system.
|
String |
toString() |
double |
xHeight()
Returns the height of the x character of the font.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static UIFont systemFontOfSize(double fontSize)
fontSize
- The size of the font object.public static UIFont boldSystemFontOfSize(double fontSize)
fontSize
- The size of the font object.public static UIFont italicSystemFontOfSize(double fontSize)
fontSize
- The size of the font object.public static UIFont fontWithName(String fontName, double fontSize)
fontName
- The familyname of the font.fontSize
- The size of the font.public static double buttonFontSize()
public static double labelFontSize()
public static double smallSystemFontSize()
public static double systemFontSize()
public UIFont fontWithSize(double fontSize)
fontSize
- The size of font.public String familyName()
public String fontName()
public double pointSize()
public double ascender()
public double descender()
public double leading()
public double capHeight()
public double xHeight()
public double lineHeight()
Copyright © 2020. All rights reserved.