Epub improvements (#162)
* Added a "Remove Edge Padding" option in "Visual Options" * Added support for paragraph gap settings in the EPUB vertical reader. * Added support for adjustable paragraph gaps in the paginated reader. * fix(epub-pagination): ensure custom fonts override embedded epub fonts * feat(epub): allow overlapping highlights and resolve gesture selection conflicts
This commit is contained in:
parent
291504fd90
commit
49e08cc9f1
11 changed files with 315 additions and 264 deletions
|
|
@ -76,7 +76,8 @@ class PaginatedReaderViewModel : ViewModel() {
|
|||
themeTextColor: androidx.compose.ui.graphics.Color,
|
||||
context: Context,
|
||||
initialChapterToPaginate: Int?,
|
||||
mathMLRenderer: MathMLRenderer
|
||||
mathMLRenderer: MathMLRenderer,
|
||||
paragraphGapMultiplier: Float
|
||||
) {
|
||||
if (paginator != null) return
|
||||
|
||||
|
|
@ -142,7 +143,8 @@ class PaginatedReaderViewModel : ViewModel() {
|
|||
allFontFaces = allFontFaces,
|
||||
context = context.applicationContext,
|
||||
mathMLRenderer = mathMLRenderer,
|
||||
userTextAlign = null
|
||||
userTextAlign = null,
|
||||
paragraphGapMultiplier = paragraphGapMultiplier
|
||||
)
|
||||
paginator = newPaginator
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue