一直总是不知道字是怎么设置的。所以在apple上面查了一下。 Font metric Methods Advancement advancementForGlyph:, maximumAdvancement X-height xHeight Ascent ascender Bounding rectangle boundingRectForFont, boundingRectForGlyph: Cap height capHeight Line height defaultLineHeightForFont, pointSize, labelFontSize, smallSystemFontSize, systemFontSize,systemFontSizeForControlSize: Descent descender Italic angle italicAngle 原文链接https://developer.apple.com/library/content/documentation/TextFonts/Conceptual/CocoaTextArchitecture/FontHandling/FontHandling.html