Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFI: Add MuPDF fz_is_document_reflowable #960

Merged
merged 2 commits into from Aug 29, 2019

Conversation

Frenzie
Copy link
Member

@Frenzie Frenzie commented Aug 29, 2019

This will be queried in front to dynamically set font size.

Cf. koreader/koreader#4368.

This will be queried in front to dynamically set font size.

Cf. <koreader/koreader#4368>.
ffi/mupdf.lua Outdated
@@ -171,6 +171,12 @@ function document_mt.__index:getPages()
return pages
end

function document_mt.__index:isDocumentReflowable(width, height, em)
if self.is_reflowable then return self.is_reflowable end
self.is_reflowable = M.fz_is_document_reflowable(context(), self.doc)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I should turn it into a boolean; this is just 0 or 1.

@Frenzie Frenzie merged commit 2685afc into koreader:master Aug 29, 2019
Frenzie added a commit to Frenzie/koreader that referenced this pull request Aug 29, 2019
@Frenzie Frenzie deleted the mupdf-is-reflowable branch August 29, 2019 20:05
Frenzie added a commit to koreader/koreader that referenced this pull request Aug 29, 2019
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant