Class CTFont

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CTFont
    extends CFType
    • Constructor Detail

      • CTFont

        protected CTFont()
    • 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.
      • 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,
                                        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.
      • 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.