1 year ago

#288598

test-img

Frank R

Using Core Text options with TextKit (like CTLineBoundsOptions)

Is there a way to use advanced Core Text options with TextKit (2)?

Specifically, I’m looking to enable useHangingPunctuation for NSAttributedStrings that I draw in layers using TextKit 2.

https://developer.apple.com/documentation/coretext/ctlineboundsoptions/1508952-usehangingpunctuation

Thanks!

ios

swift

macos

core-text

textkit

0 Answers

Your Answer

Accepted video resources