getWidth

fun getWidth(fontId: String?): Int(source)

优先返回字体专用宽度,否则返回通用宽度。 Returns a font-specific width when defined, otherwise the general width.