public class CGFont extends CFType
Modifier and Type | Method and Description |
---|---|
static CGFont |
createWithDataProvider(CGDataProvider provider)
Constructs a font object according to the specified CGDataProvider.
|
static CGFont |
createWithFontName(String name)
Constructs a font object according to the specified font name.
|
int |
getAscent()
Returns the ascent of this font.
|
int |
getCapHeight()
Returns the cap height of the font.
|
int |
getDescent()
Returns the decent of this font.
|
int |
getLeading()
Returns the leading space of the font.
|
int |
getXHeight()
Returns the height of the x character of the font.
|
String |
toString() |
public static CGFont createWithDataProvider(CGDataProvider provider)
provider
- The CGDataProvider of the new font object.CGDataProvider
public static CGFont createWithFontName(String name)
name
- The name of the font object.public int getAscent()
public int getDescent()
public int getLeading()
public int getCapHeight()
public int getXHeight()
Copyright © 2020. All rights reserved.