Measure dimensions of biggest character in a CGFont
问题 I am using CoreAnimation to build a view consisting of several layer which will be animated later on. There are also CATextLayer s which will contain only one character of a given font in a given size. To make it pretty I would like to set the bounds of the layer so that the character fits in neatly. The problem is that I have to determine the size of the biggest character in a CGFont which will be the basis of the bounds calculation for the text layer. In this question on SO measure size of