|
|
|
@ -7,6 +7,7 @@ import io.legado.app.help.http.CookieStore |
|
|
|
|
import io.legado.app.help.http.SSLHelper |
|
|
|
|
import io.legado.app.model.Debug |
|
|
|
|
import io.legado.app.model.analyzeRule.AnalyzeUrl |
|
|
|
|
import io.legado.app.model.analyzeRule.QueryTTF |
|
|
|
|
import io.legado.app.utils.* |
|
|
|
|
import org.jsoup.Connection |
|
|
|
|
import org.jsoup.Jsoup |
|
|
|
@ -226,6 +227,14 @@ interface JsExtensions { |
|
|
|
|
return File(path).readBytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 解析字体,返回字体解析类 |
|
|
|
|
*/ |
|
|
|
|
fun queryTTF(font: ByteArray?): QueryTTF? { |
|
|
|
|
font ?: return null |
|
|
|
|
return QueryTTF(font) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 输出调试日志 |
|
|
|
|
*/ |
|
|
|
|