Class CTRun

All Implemented Interfaces:
AutoCloseable

public class CTRun
extends CFType
  • Constructor Details

    • CTRun

      protected CTRun()
  • Method Details

    • getAttributes

      public NSAttributedStringAttributes getAttributes()
    • getTextMarkupAttributes

      public CMTextMarkupAttributes getTextMarkupAttributes()
    • getCoreTextAttributes

      public CTAttributedStringAttributes getCoreTextAttributes()
    • getGlyphs

      public short[] getGlyphs​(CFRange range)
      Since:
      Available in iOS 3.2 and later.
    • getPositions

      public CGPoint[] getPositions​(CFRange range)
      Since:
      Available in iOS 3.2 and later.
    • getAdvances

      public CGSize[] getAdvances​(CFRange range)
      Since:
      Available in iOS 3.2 and later.
    • getStringIndices

      public long[] getStringIndices​(CFRange range)
      Since:
      Available in iOS 3.2 and later.
    • getWidth

      public double getWidth​(CFRange range)
      Since:
      Available in iOS 3.2 and later.
    • getAscent

      public double getAscent​(CFRange range)
      Since:
      Available in iOS 3.2 and later.
    • getDescent

      public double getDescent​(CFRange range)
      Since:
      Available in iOS 3.2 and later.
    • getLeading

      public double getLeading​(CFRange range)
      Since:
      Available in iOS 3.2 and later.
    • getClassTypeID

      public static long getClassTypeID()
    • getGlyphCount

      public long getGlyphCount()
    • getAttributesDictionary

      public NSDictionary getAttributesDictionary()
    • getStatus

      public CTRunStatus getStatus()
    • getGlyphs

      protected void getGlyphs​(CFRange range, ShortPtr buffer)
    • getPositions

      protected void getPositions​(CFRange range, CGPoint buffer)
    • getAdvances

      protected void getAdvances​(CFRange range, CGSize buffer)
    • getStringIndices

      protected void getStringIndices​(CFRange range, LongPtr buffer)
    • getStringRange

      public CFRange getStringRange()
    • getTypographicBounds

      protected double getTypographicBounds​(CFRange range, MachineSizedFloatPtr ascent, MachineSizedFloatPtr descent, MachineSizedFloatPtr leading)
    • getImageBounds

      public CGRect getImageBounds​(CGContext context, CFRange range)
    • getTextMatrix

      public CGAffineTransform getTextMatrix()
    • getBaseAdvancesAndOrigins

      public void getBaseAdvancesAndOrigins​(CFRange range, CGSize advancesBuffer, CGPoint originsBuffer)
      Since:
      Available in iOS 9.0 and later.
    • draw

      public void draw​(CGContext context, CFRange range)