From 1ccbab9e5f82e358bc4bf5366d5a642f3be4aac9 Mon Sep 17 00:00:00 2001 From: Antecer Date: Mon, 16 Nov 2020 14:15:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96=E8=BD=AE?= =?UTF-8?q?=E5=BB=93=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/model/analyzeRule/QueryTTF.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.kt b/app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.kt index 8a1e91493..b6de0a9aa 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.kt @@ -480,4 +480,11 @@ class QueryTTF(var font: ByteArray) : JsExtensions { } return glyph } + + /*** + * 获取字体轮廓 (fontCode:单个String字符) + */ + fun GetGlyf(fontCode: String): ArrayList { + return GetGlyf(fontCode[0].toInt()) + } } \ No newline at end of file