Post

Replies

Boosts

Views

Activity

Reply to NSTextLayoutManager giving incorrect fragment frame
NSTextLayoutManager.usageBoundsForTextContainer gives me a wildly inacurrate (much too big) height, and enumerating the documentRange.endLocation Y coordinate in reverse gives me a too small height. Any workarounds for these issues yet? I can't get any reasonable/reliable text height estimation from NSTextLayoutManager. And enumerating in a forward direction is not possible, since if you have lets say 10000 lines, this will destroy performance for a non-contiguous text view since we are always forcing layout of the complete text.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’24