CTFrame.GetLineOrigins
- Dominant language
- C#
- Stars
- 2.9k
- Forks
- 576
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 123
Description
`public void GetLineOrigins(NSRange range, CGPoint[] origins)`
According to apple documentation:
**range**
> The range of line origins you wish to copy. If the length of the range is 0, then the copy operation continues from the start index of the range to the last line origin.
**origins**
> The buffer to which the origins are copied. The buffer must have at least as many elements as specified by range's length. Each CGPoint in this array is the origin of the corresponding line in the array of lines returned by CTFrameGetLines relative to the origin of the path's bounding box, which can be obtained from CGPathGetPathBoundingBox.
https://developer.apple.com/documentation/coretext/1510610-ctframegetlineorigins?language=objc
Why does xamarin wrapping method forces to create buffer for **all** lines ?
https://github.com/xamarin/xamarin-macios/blob/a76255270eb34676ddb779567fb529164cd5de8a/src/CoreText/CTFrame.cs#L188-L189
So I cannot for example get origin of specific single line without allocating buffer for all lines.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.