getType

abstract fun getType(): TextUnitType

获取此文本单位的类型。

Return

一个 TextUnitType 实例,表示单位是 Sp、Em 还是 Unspecified。