简体中文
外观
UIFont
capHeight
capHeight 属性是大写字母的高度。
数,单位 pt,由字体和字号决定。
TypeError
const font = UIFont.systemFontOfSize(17); console.log(font.capHeight);
结果:控制台输出 17 pt 系统字体里大写字母的高度。
UIFont.capHeight。
UIFont.capHeight