Merge pull request #482 from gedoor/antecer

update
pull/487/head^2
Antecer 4 years ago committed by GitHub
commit 7df56e4151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.kt

@ -491,4 +491,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