What does the NSStringDrawingUsesDeviceMetrics flag mean and how do we use it?

后端 未结 1 593
暖寄归人
暖寄归人 2021-01-21 22:18

This question is in relation to my comment at How do we measure visible bounds of text in Cocoa?.

Here are a couple of links explaining the meaning of the flag.
Appl

相关标签:
1条回答
  • 2021-01-21 22:32

    Google this monkey patch

    NS(Attributed)String+Geometrics

    It solves the problem fairly reliably.

    0 讨论(0)
提交回复
热议问题