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:
AutoCloseable
public class CGFont extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCGFont.CGFontPtrNested 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 intFontIndexInvalidstatic intFontIndexMaxstatic intGlyphMax -
Constructor Summary
Constructors Modifier Constructor Description protectedCGFont() -
Method Summary
Modifier and Type Method Description static CGFontcreate(String name)static CGFontcreate(CGDataProvider provider)intgetAscent()intgetCapHeight()static longgetClassTypeID()intgetDescent()CGRectgetFontBBox()StringgetFullName()int[]getGlyphAdvances(char[] glyphs)CGRect[]getGlyphBBoxes(char[] glyphs)chargetGlyphForName(String name)doublegetItalicAngle()intgetLeading()StringgetNameForGlyph(char glyph)longgetNumberOfGlyphs()StringgetPostScriptName()doublegetStemV()intgetUnitsPerEm()List<CGFontVariationAxis>getVariationAxes()Map<String,NSNumber>getVariations()intgetXHeight()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 Details
-
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
-
-
Constructor Details
-
CGFont
protected CGFont()
-
-
Method Details
-
getGlyphAdvances
public int[] getGlyphAdvances(char[] glyphs) -
getGlyphBBoxes
-
getClassTypeID
public static long getClassTypeID() -
create
-
create
-
getNumberOfGlyphs
public long getNumberOfGlyphs() -
getUnitsPerEm
public int getUnitsPerEm() -
getPostScriptName
-
getFullName
-
getAscent
public int getAscent() -
getDescent
public int getDescent() -
getLeading
public int getLeading() -
getCapHeight
public int getCapHeight() -
getXHeight
public int getXHeight() -
getFontBBox
-
getItalicAngle
public double getItalicAngle() -
getStemV
public double getStemV() -
getVariationAxes
-
getVariations
-
getGlyphForName
-
getNameForGlyph
-