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:
java.lang.AutoCloseable
public class CTFont extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CTFont.CTFontPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CTFont()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CTFont
create(java.lang.String name, double size, CGAffineTransform matrix)
static CTFont
create(java.lang.String name, double size, CGAffineTransform matrix, CTFontOptions options)
CTFont
create(java.lang.String string, CFRange range)
static CTFont
create(CGFont graphicsFont, double size, CGAffineTransform matrix, CTFontDescriptor attributes)
static CTFont
create(CTFontDescriptor descriptor, double size, CGAffineTransform matrix)
static CTFont
create(CTFontDescriptor descriptor, double size, CGAffineTransform matrix, CTFontOptions options)
static CTFont
createCopy(CTFont font, double size, CGAffineTransform matrix, java.lang.String family)
static CTFont
createCopy(CTFont font, double size, CGAffineTransform matrix, CTFontDescriptor attributes)
static CTFont
createCopy(CTFont font, double size, CGAffineTransform matrix, CTFontSymbolicTraits symTraitValue, CTFontSymbolicTraits symTraitMask)
CGPath
createPath(short glyph, CGAffineTransform matrix)
static CTFont
createUIFont(CTFontUIFontType uiType, double size, java.lang.String language)
void
drawGlyphs(short[] glyphs, CGPoint[] positions, CGContext context)
protected void
drawGlyphs(org.robovm.rt.bro.ptr.ShortPtr glyphs, CGPoint positions, long count, CGContext context)
CGSize[]
getAdvances(CTFontOrientation orientation, short[] glyphs)
protected double
getAdvances(CTFontOrientation orientation, org.robovm.rt.bro.ptr.ShortPtr glyphs, CGSize.CGSizePtr advances, long count)
double
getAscent()
CFType
getAttribute(CTFontAttribute attribute)
java.util.List<CTFontTableTag>
getAvailableTables(CTFontTableOptions options)
CGRect
getBoundingBox()
CGRect[]
getBoundingRects(CTFontOrientation orientation, short[] glyphs)
protected CGRect
getBoundingRects(CTFontOrientation orientation, org.robovm.rt.bro.ptr.ShortPtr glyphs, CGRect.CGRectPtr boundingRects, long count)
double
getCapHeight()
NSCharacterSet
getCharacterSet()
static long
getClassTypeID()
java.util.List<CTFontDescriptor>
getDefaultCascadeList(java.util.List<java.lang.String> languagePrefList)
double
getDescent()
java.lang.String
getDisplayName()
java.lang.String
getFamilyName()
protected CFArray
getFeatures()
protected CFArray
getFeatureSettings()
CTFontDescriptor
getFontDescriptor()
java.lang.String
getFullName()
short
getGlyph(java.lang.String glyphName)
long
getGlyphCount()
short[]
getGlyphs(short[] characters)
protected boolean
getGlyphs(org.robovm.rt.bro.ptr.ShortPtr characters, org.robovm.rt.bro.ptr.ShortPtr glyphs, long count)
CGFont
getGraphicsFont()
protected CGFont
getGraphicsFont(CTFontDescriptor.CTFontDescriptorPtr attributes)
double
getLeading()
double[]
getLigatureCaretPositions(short glyph, int maxPositions)
protected long
getLigatureCaretPositions(short glyph, org.robovm.rt.bro.ptr.MachineSizedFloatPtr positions, long maxPositions)
java.lang.String
getLocalizedName(CTFontNameKey nameKey)
protected java.lang.String
getLocalizedName(CTFontNameKey nameKey, CFString.CFStringPtr actualLanguage)
CGAffineTransform
getMatrix()
java.lang.String
getName(CTFontNameKey nameKey)
CGRect[]
getOpticalBounds(short[] glyphs)
protected CGRect
getOpticalBounds(org.robovm.rt.bro.ptr.ShortPtr glyphs, CGRect.CGRectPtr boundingRects, long count, long options)
java.lang.String
getPostScriptName()
double
getSize()
double
getSlantAngle()
int
getStringEncoding()
java.util.List<java.lang.String>
getSupportedLanguages()
CTFontSymbolicTraits
getSymbolicTraits()
NSData
getTable(CTFontTableTag table, CTFontTableOptions options)
CTFontTraits
getTraits()
double
getUnderlinePosition()
double
getUnderlineThickness()
int
getUnitsPerEm()
java.util.Map<java.lang.String,NSNumber>
getVariation()
java.util.List<CTFontVariationAxes>
getVariationAxes()
CGSize[]
getVerticalTranslations(short[] glyphs)
protected void
getVerticalTranslations(org.robovm.rt.bro.ptr.ShortPtr glyphs, CGSize.CGSizePtr translations, long count)
double
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
-
-
-
-
Method Detail
-
getLocalizedName
public java.lang.String getLocalizedName(CTFontNameKey nameKey)
- Since:
- Available in iOS 3.2 and later.
-
getGlyphs
public short[] getGlyphs(short[] characters)
- Since:
- Available in iOS 3.2 and later.
-
getBoundingRects
public CGRect[] getBoundingRects(CTFontOrientation orientation, short[] glyphs)
- Since:
- Available in iOS 3.2 and later.
-
getOpticalBounds
public CGRect[] getOpticalBounds(short[] glyphs)
- Since:
- Available in iOS 6.0 and later.
-
getAdvances
public CGSize[] getAdvances(CTFontOrientation orientation, short[] glyphs)
- Since:
- Available in iOS 3.2 and later.
-
getVerticalTranslations
public CGSize[] getVerticalTranslations(short[] glyphs)
- Since:
- Available in iOS 3.2 and later.
-
getGraphicsFont
public CGFont getGraphicsFont()
- Since:
- Available in iOS 3.2 and later.
-
drawGlyphs
public void drawGlyphs(short[] glyphs, CGPoint[] positions, CGContext context)
- 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()
- Since:
- Available in iOS 3.2 and later.
-
create
public static CTFont create(java.lang.String name, double size, CGAffineTransform matrix)
- Since:
- Available in iOS 3.2 and later.
-
create
public static CTFont create(CTFontDescriptor descriptor, double size, CGAffineTransform matrix)
- Since:
- Available in iOS 3.2 and later.
-
create
public static CTFont create(java.lang.String name, double size, CGAffineTransform matrix, CTFontOptions options)
- Since:
- Available in iOS 3.2 and later.
-
create
public static CTFont create(CTFontDescriptor descriptor, double size, CGAffineTransform matrix, CTFontOptions options)
- Since:
- Available in iOS 3.2 and later.
-
createUIFont
public static CTFont createUIFont(CTFontUIFontType uiType, double size, java.lang.String language)
- Since:
- Available in iOS 3.2 and later.
-
createCopy
public static CTFont createCopy(CTFont font, double size, CGAffineTransform matrix, CTFontDescriptor attributes)
- Since:
- Available in iOS 3.2 and later.
-
createCopy
public static CTFont createCopy(CTFont font, double size, CGAffineTransform matrix, CTFontSymbolicTraits symTraitValue, CTFontSymbolicTraits symTraitMask)
- Since:
- Available in iOS 3.2 and later.
-
createCopy
public static CTFont createCopy(CTFont font, double size, CGAffineTransform matrix, java.lang.String family)
- Since:
- Available in iOS 3.2 and later.
-
create
public CTFont create(java.lang.String string, CFRange range)
- Since:
- Available in iOS 3.2 and later.
-
getFontDescriptor
public CTFontDescriptor getFontDescriptor()
- Since:
- Available in iOS 3.2 and later.
-
getAttribute
public CFType getAttribute(CTFontAttribute attribute)
- Since:
- Available in iOS 3.2 and later.
-
getSize
public double getSize()
- Since:
- Available in iOS 3.2 and later.
-
getMatrix
public CGAffineTransform getMatrix()
- Since:
- Available in iOS 3.2 and later.
-
getSymbolicTraits
public CTFontSymbolicTraits getSymbolicTraits()
- Since:
- Available in iOS 3.2 and later.
-
getTraits
public CTFontTraits getTraits()
- Since:
- Available in iOS 3.2 and later.
-
getPostScriptName
public java.lang.String getPostScriptName()
- Since:
- Available in iOS 3.2 and later.
-
getFamilyName
public java.lang.String getFamilyName()
- Since:
- Available in iOS 3.2 and later.
-
getFullName
public java.lang.String getFullName()
- Since:
- Available in iOS 3.2 and later.
-
getDisplayName
public java.lang.String getDisplayName()
- Since:
- Available in iOS 3.2 and later.
-
getName
public java.lang.String getName(CTFontNameKey nameKey)
- Since:
- Available in iOS 3.2 and later.
-
getLocalizedName
protected java.lang.String getLocalizedName(CTFontNameKey nameKey, CFString.CFStringPtr actualLanguage)
- Since:
- Available in iOS 3.2 and later.
-
getCharacterSet
public NSCharacterSet getCharacterSet()
- Since:
- Available in iOS 3.2 and later.
-
getStringEncoding
public int getStringEncoding()
- Since:
- Available in iOS 3.2 and later.
-
getSupportedLanguages
public java.util.List<java.lang.String> getSupportedLanguages()
- Since:
- Available in iOS 3.2 and later.
-
getGlyphs
protected boolean getGlyphs(org.robovm.rt.bro.ptr.ShortPtr characters, org.robovm.rt.bro.ptr.ShortPtr glyphs, long count)
- Since:
- Available in iOS 3.2 and later.
-
getAscent
public double getAscent()
- Since:
- Available in iOS 3.2 and later.
-
getDescent
public double getDescent()
- Since:
- Available in iOS 3.2 and later.
-
getLeading
public double getLeading()
- Since:
- Available in iOS 3.2 and later.
-
getUnitsPerEm
public int getUnitsPerEm()
- Since:
- Available in iOS 3.2 and later.
-
getGlyphCount
public long getGlyphCount()
- Since:
- Available in iOS 3.2 and later.
-
getBoundingBox
public CGRect getBoundingBox()
- Since:
- Available in iOS 3.2 and later.
-
getUnderlinePosition
public double getUnderlinePosition()
- Since:
- Available in iOS 3.2 and later.
-
getUnderlineThickness
public double getUnderlineThickness()
- Since:
- Available in iOS 3.2 and later.
-
getSlantAngle
public double getSlantAngle()
- Since:
- Available in iOS 3.2 and later.
-
getCapHeight
public double getCapHeight()
- Since:
- Available in iOS 3.2 and later.
-
getXHeight
public double getXHeight()
- Since:
- Available in iOS 3.2 and later.
-
getGlyph
public short getGlyph(java.lang.String glyphName)
- Since:
- Available in iOS 3.2 and later.
-
getBoundingRects
protected CGRect getBoundingRects(CTFontOrientation orientation, org.robovm.rt.bro.ptr.ShortPtr glyphs, CGRect.CGRectPtr boundingRects, long count)
- Since:
- Available in iOS 3.2 and later.
-
getOpticalBounds
protected CGRect getOpticalBounds(org.robovm.rt.bro.ptr.ShortPtr glyphs, CGRect.CGRectPtr boundingRects, long count, long options)
- Since:
- Available in iOS 6.0 and later.
-
getAdvances
protected double getAdvances(CTFontOrientation orientation, org.robovm.rt.bro.ptr.ShortPtr glyphs, CGSize.CGSizePtr advances, long count)
- Since:
- Available in iOS 3.2 and later.
-
getVerticalTranslations
protected void getVerticalTranslations(org.robovm.rt.bro.ptr.ShortPtr glyphs, CGSize.CGSizePtr translations, long count)
- Since:
- Available in iOS 3.2 and later.
-
createPath
public CGPath createPath(short glyph, CGAffineTransform matrix)
- Since:
- Available in iOS 3.2 and later.
-
getVariationAxes
public java.util.List<CTFontVariationAxes> getVariationAxes()
- Since:
- Available in iOS 3.2 and later.
-
getVariation
public java.util.Map<java.lang.String,NSNumber> getVariation()
- Since:
- Available in iOS 3.2 and later.
-
getFeatures
protected CFArray getFeatures()
- Since:
- Available in iOS 3.2 and later.
-
getFeatureSettings
protected CFArray getFeatureSettings()
- Since:
- Available in iOS 3.2 and later.
-
getGraphicsFont
protected CGFont getGraphicsFont(CTFontDescriptor.CTFontDescriptorPtr attributes)
- Since:
- Available in iOS 3.2 and later.
-
create
public static CTFont create(CGFont graphicsFont, double size, CGAffineTransform matrix, CTFontDescriptor attributes)
- Since:
- Available in iOS 3.2 and later.
-
getAvailableTables
public java.util.List<CTFontTableTag> getAvailableTables(CTFontTableOptions options)
- Since:
- Available in iOS 3.2 and later.
-
getTable
public NSData getTable(CTFontTableTag table, CTFontTableOptions options)
- Since:
- Available in iOS 3.2 and later.
-
drawGlyphs
protected void drawGlyphs(org.robovm.rt.bro.ptr.ShortPtr glyphs, CGPoint positions, long count, CGContext context)
- Since:
- Available in iOS 4.2 and later.
-
getLigatureCaretPositions
protected long getLigatureCaretPositions(short glyph, org.robovm.rt.bro.ptr.MachineSizedFloatPtr positions, long maxPositions)
- Since:
- Available in iOS 3.2 and later.
-
getDefaultCascadeList
public java.util.List<CTFontDescriptor> getDefaultCascadeList(java.util.List<java.lang.String> languagePrefList)
- Since:
- Available in iOS 6.0 and later.
-
-