Problems of CTLineGetTypographicBounds

前端 未结 1 1094
南笙
南笙 2021-01-05 07:35

The code is extracted from SimpleTextInput sampe code, with a bit modification.

Create the frame:

self.font = [UIFont systemFontOfSize:18.f];
CTFontR         


        
相关标签:
1条回答
  • 2021-01-05 08:13

    http://developer.apple.com/library/mac/#documentation/TextFonts/Conceptual/CocoaTextArchitecture/TypoFeatures/TextSystemFeatures.html read this doc and you will know how line-height is calculated, but I still don't get why CTLineGetTypographicBounds got a zero leading

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