Package org.robovm.apple.coregraphics
Class CGFont
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.coregraphics.CGFont
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CGFont extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CGFont.CGFontPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Field Summary
Fields Modifier and Type Field Description static int
FontIndexInvalid
static int
FontIndexMax
static int
GlyphMax
-
Constructor Summary
Constructors Modifier Constructor Description protected
CGFont()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CGFont
create(java.lang.String name)
static CGFont
create(CGDataProvider provider)
int
getAscent()
int
getCapHeight()
static long
getClassTypeID()
int
getDescent()
CGRect
getFontBBox()
java.lang.String
getFullName()
int[]
getGlyphAdvances(char[] glyphs)
CGRect[]
getGlyphBBoxes(char[] glyphs)
char
getGlyphForName(java.lang.String name)
double
getItalicAngle()
int
getLeading()
java.lang.String
getNameForGlyph(char glyph)
long
getNumberOfGlyphs()
java.lang.String
getPostScriptName()
double
getStemV()
int
getUnitsPerEm()
java.util.List<CGFontVariationAxis>
getVariationAxes()
java.util.Map<java.lang.String,NSNumber>
getVariations()
int
getXHeight()
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Field Detail
-
FontIndexMax
public static final int FontIndexMax
- See Also:
- Constant Field Values
-
FontIndexInvalid
public static final int FontIndexInvalid
- See Also:
- Constant Field Values
-
GlyphMax
public static final int GlyphMax
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGlyphAdvances
public int[] getGlyphAdvances(char[] glyphs)
-
getGlyphBBoxes
public CGRect[] getGlyphBBoxes(char[] glyphs)
-
getClassTypeID
public static long getClassTypeID()
- Since:
- Available in iOS 2.0 and later.
-
create
public static CGFont create(CGDataProvider provider)
- Since:
- Available in iOS 2.0 and later.
-
create
public static CGFont create(java.lang.String name)
- Since:
- Available in iOS 2.0 and later.
-
getNumberOfGlyphs
public long getNumberOfGlyphs()
- Since:
- Available in iOS 2.0 and later.
-
getUnitsPerEm
public int getUnitsPerEm()
- Since:
- Available in iOS 2.0 and later.
-
getPostScriptName
public java.lang.String getPostScriptName()
- Since:
- Available in iOS 2.0 and later.
-
getFullName
public java.lang.String getFullName()
- Since:
- Available in iOS 2.0 and later.
-
getAscent
public int getAscent()
- Since:
- Available in iOS 2.0 and later.
-
getDescent
public int getDescent()
- Since:
- Available in iOS 2.0 and later.
-
getLeading
public int getLeading()
- Since:
- Available in iOS 2.0 and later.
-
getCapHeight
public int getCapHeight()
- Since:
- Available in iOS 2.0 and later.
-
getXHeight
public int getXHeight()
- Since:
- Available in iOS 2.0 and later.
-
getFontBBox
public CGRect getFontBBox()
- Since:
- Available in iOS 2.0 and later.
-
getItalicAngle
public double getItalicAngle()
- Since:
- Available in iOS 2.0 and later.
-
getStemV
public double getStemV()
- Since:
- Available in iOS 2.0 and later.
-
getVariationAxes
public java.util.List<CGFontVariationAxis> getVariationAxes()
- Since:
- Available in iOS 2.0 and later.
-
getVariations
public java.util.Map<java.lang.String,NSNumber> getVariations()
- Since:
- Available in iOS 2.0 and later.
-
getGlyphForName
public char getGlyphForName(java.lang.String name)
- Since:
- Available in iOS 2.0 and later.
-
getNameForGlyph
public java.lang.String getNameForGlyph(char glyph)
- Since:
- Available in iOS 2.0 and later.
-
-