Package org.robovm.apple.coretext
Class CTFont
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.coretext.CTFont
- All Implemented Interfaces:
AutoCloseable
public class CTFont extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCTFont.CTFontPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedCTFont() -
Method Summary
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
-
Constructor Details
-
CTFont
protected CTFont()
-
-
Method Details
-
getLocalizedName
- Since:
- Available in iOS 3.2 and later.
-
getGlyphs
public short[] getGlyphs(short[] characters)- Since:
- Available in iOS 3.2 and later.
-
getBoundingRects
- Since:
- Available in iOS 3.2 and later.
-
getOpticalBounds
- Since:
- Available in iOS 6.0 and later.
-
getAdvances
- Since:
- Available in iOS 3.2 and later.
-
getVerticalTranslations
- Since:
- Available in iOS 3.2 and later.
-
getGraphicsFont
- Since:
- Available in iOS 3.2 and later.
-
drawGlyphs
- Since:
- Available in iOS 4.2 and later.
-
getLigatureCaretPositions
public double[] getLigatureCaretPositions(short glyph, int maxPositions)- Since:
- Available in iOS 3.2 and later.
-
getClassTypeID
public static long getClassTypeID() -
create
-
create
-
create
public static CTFont create(String name, double size, CGAffineTransform matrix, CTFontOptions options) -
create
public static CTFont create(CTFontDescriptor descriptor, double size, CGAffineTransform matrix, CTFontOptions options) -
createUIFont
-
createCopy
public static CTFont createCopy(CTFont font, double size, CGAffineTransform matrix, CTFontDescriptor attributes) -
createCopy
public static CTFont createCopy(CTFont font, double size, CGAffineTransform matrix, CTFontSymbolicTraits symTraitValue, CTFontSymbolicTraits symTraitMask) -
createCopy
-
create
-
create
-
getFontDescriptor
-
getAttribute
-
getSize
public double getSize() -
getMatrix
-
getSymbolicTraits
-
getTraits
-
getPostScriptName
-
getFamilyName
-
getFullName
-
getDisplayName
-
getName
-
getLocalizedName
-
getCharacterSet
-
getStringEncoding
public int getStringEncoding() -
getSupportedLanguages
-
getGlyphs
-
getAscent
public double getAscent() -
getDescent
public double getDescent() -
getLeading
public double getLeading() -
getUnitsPerEm
public int getUnitsPerEm() -
getGlyphCount
public long getGlyphCount() -
getBoundingBox
-
getUnderlinePosition
public double getUnderlinePosition() -
getUnderlineThickness
public double getUnderlineThickness() -
getSlantAngle
public double getSlantAngle() -
getCapHeight
public double getCapHeight() -
getXHeight
public double getXHeight() -
getGlyph
-
getNameForGlyph
-
getBoundingRects
protected CGRect getBoundingRects(CTFontOrientation orientation, ShortPtr glyphs, CGRect.CGRectPtr boundingRects, long count) -
getOpticalBounds
protected CGRect getOpticalBounds(ShortPtr glyphs, CGRect.CGRectPtr boundingRects, long count, long options) -
getAdvances
protected double getAdvances(CTFontOrientation orientation, ShortPtr glyphs, CGSize.CGSizePtr advances, long count) -
getVerticalTranslations
-
createPath
-
getVariationAxes
-
getVariation
-
getFeatures
-
getFeatureSettings
-
getGraphicsFont
-
create
public static CTFont create(CGFont graphicsFont, double size, CGAffineTransform matrix, CTFontDescriptor attributes) -
getAvailableTables
-
getTable
-
drawGlyphs
-
getLigatureCaretPositions
protected long getLigatureCaretPositions(short glyph, MachineSizedFloatPtr positions, long maxPositions) -
getDefaultCascadeList
-