/** * @since Available in iOS 3.2 and later. */ public CGSize[] getAdvances(@ByVal CFRange range) { CGSize s = Struct.allocate(CGSize.class, (int)range.getLength()); getAdvances(range, s); return s.toArray((int) getGlyphCount()); } /**
public CTAttributedStringAttributes getCoreTextAttributes() { NSDictionary dict = getAttributesDictionary(); if (dict == null) return null; return new CTAttributedStringAttributes(getAttributesDictionary().as(CFDictionary.class)); }
/** * @since Available in iOS 3.2 and later. */ public short[] getGlyphs(@ByVal CFRange range) { ShortPtr ptr = new ShortPtr(); getGlyphs(range, ptr); return ptr.toShortArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public long[] getStringIndices(@ByVal CFRange range) { LongPtr ptr = new LongPtr(); getStringIndices(range, ptr); return ptr.toLongArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public CGPoint[] getPositions(@ByVal CFRange range) { CGPoint p = Struct.allocate(CGPoint.class, (int)range.getLength()); getPositions(range, p); return p.toArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public @MachineSizedFloat double getWidth(@ByVal CFRange range) { return getTypographicBounds(range, null, null, null); } /**
/** * @since Available in iOS 3.2 and later. */ public @MachineSizedFloat double getDescent(@ByVal CFRange range) { MachineSizedFloatPtr ptr = new MachineSizedFloatPtr(); getTypographicBounds(range, null, ptr, null); return ptr.get(); } /**
/** * @since Available in iOS 3.2 and later. */ public CGPoint[] getPositions(@ByVal CFRange range) { CGPoint p = Struct.allocate(CGPoint.class, (int)range.getLength()); getPositions(range, p); return p.toArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public long[] getStringIndices(@ByVal CFRange range) { LongPtr ptr = new LongPtr(); getStringIndices(range, ptr); return ptr.toLongArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public @MachineSizedFloat double getLeading(@ByVal CFRange range) { MachineSizedFloatPtr ptr = new MachineSizedFloatPtr(); getTypographicBounds(range, null, null, ptr); return ptr.get(); } /*<methods>*/
/** * @since Available in iOS 3.2 and later. */ public CGPoint[] getPositions(@ByVal CFRange range) { CGPoint p = Struct.allocate(CGPoint.class, (int)range.getLength()); getPositions(range, p); return p.toArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public long[] getStringIndices(@ByVal CFRange range) { LongPtr ptr = new LongPtr(); getStringIndices(range, ptr); return ptr.toLongArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public short[] getGlyphs(@ByVal CFRange range) { ShortPtr ptr = new ShortPtr(); getGlyphs(range, ptr); return ptr.toShortArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public CGSize[] getAdvances(@ByVal CFRange range) { CGSize s = Struct.allocate(CGSize.class, (int)range.getLength()); getAdvances(range, s); return s.toArray((int) getGlyphCount()); } /**
@WeaklyLinked public CMTextMarkupAttributes getTextMarkupAttributes() { NSDictionary dict = getAttributesDictionary(); if (dict == null) return null; return new CMTextMarkupAttributes(getAttributesDictionary().as(CFDictionary.class)); } public CTAttributedStringAttributes getCoreTextAttributes() {
/** * @since Available in iOS 3.2 and later. */ public @MachineSizedFloat double getAscent(@ByVal CFRange range) { MachineSizedFloatPtr ptr = new MachineSizedFloatPtr(); getTypographicBounds(range, ptr, null, null); return ptr.get(); } /**
/** * @since Available in iOS 3.2 and later. */ public short[] getGlyphs(@ByVal CFRange range) { ShortPtr ptr = new ShortPtr(); getGlyphs(range, ptr); return ptr.toShortArray((int) getGlyphCount()); } /**
/** * @since Available in iOS 3.2 and later. */ public CGSize[] getAdvances(@ByVal CFRange range) { CGSize s = Struct.allocate(CGSize.class, (int)range.getLength()); getAdvances(range, s); return s.toArray((int) getGlyphCount()); } /**
@WeaklyLinked public NSAttributedStringAttributes getAttributes() { NSDictionary dict = getAttributesDictionary(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } @WeaklyLinked
/** * @since Available in iOS 3.2 and later. */ public @MachineSizedFloat double getWidth(@ByVal CFRange range) { return getTypographicBounds(range, null, null, null); } /**