public double GetAdvancesForGlyphs(CTFontOrientation orientation, CGGlyph[] glyphs) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } return(GetAdvancesForGlyphs(orientation, glyphs, null, glyphs.Length)); }
public double GetAdvancesForGlyphs(CTFontOrientation orientation, CGGlyph[] glyphs, SizeF[] advances, int count) { AssertCount(count); AssertLength("glyphs", glyphs, count); AssertLength("advances", advances, count, true); return(CTFontGetAdvancesForGlyphs(handle, orientation, glyphs, advances, count)); }
public RectangleF GetBoundingRects(CTFontOrientation orientation, CGGlyph[] glyphs) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } return(GetBoundingRects(orientation, glyphs, null, glyphs.Length)); }
public RectangleF GetBoundingRects(CTFontOrientation orientation, CGGlyph[] glyphs, RectangleF[] boundingRects, int count) { AssertCount(count); AssertLength("glyphs", glyphs, count); AssertLength("boundingRects", boundingRects, count, true); return(CTFontGetBoundingRectsForGlyphs(handle, orientation, glyphs, boundingRects, count)); }
static extern double CTFontGetAdvancesForGlyphs(IntPtr font, CTFontOrientation orientation, [In] CGGlyph[] glyphs, [Out] SizeF[] advances, int count);
static extern RectangleF CTFontGetBoundingRectsForGlyphs(IntPtr font, CTFontOrientation orientation, [In] CGGlyph[] glyphs, [Out] RectangleF[] boundingRects, int count);