更新获取轮廓的方法

pull/482/head
Antecer 4 years ago
parent 93b80d65f5
commit 1ccbab9e5f
  1. 7
      app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.kt

@ -480,4 +480,11 @@ class QueryTTF(var font: ByteArray) : JsExtensions {
} }
return glyph return glyph
} }
/***
* 获取字体轮廓 (fontCode:单个String字符)
*/
fun GetGlyf(fontCode: String): ArrayList<Short> {
return GetGlyf(fontCode[0].toInt())
}
} }
Loading…
Cancel
Save