|
|
@ -1,5 +1,6 @@ |
|
|
|
package io.legado.app.ui.book.read.page.provider |
|
|
|
package io.legado.app.ui.book.read.page.provider |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import android.annotation.SuppressLint |
|
|
|
import android.graphics.Paint |
|
|
|
import android.graphics.Paint |
|
|
|
import android.graphics.Typeface |
|
|
|
import android.graphics.Typeface |
|
|
|
import android.net.Uri |
|
|
|
import android.net.Uri |
|
|
@ -567,6 +568,7 @@ object ChapterProvider { |
|
|
|
upLayout() |
|
|
|
upLayout() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressLint("Recycle") |
|
|
|
private fun getTypeface(fontPath: String): Typeface { |
|
|
|
private fun getTypeface(fontPath: String): Typeface { |
|
|
|
return kotlin.runCatching { |
|
|
|
return kotlin.runCatching { |
|
|
|
when { |
|
|
|
when { |
|
|
|