copt deduplicate: font settings (#10885)

This commit is contained in:
hius07
2023-09-09 12:44:56 +03:00
committed by GitHub
parent 6efcf96b75
commit cc82ead981
5 changed files with 20 additions and 72 deletions

View File

@@ -421,7 +421,7 @@ function ReaderThumbnail:_getPageImage(page)
-- will be croped out after drawing), we will show them just as rendered.
self.ui.rolling.rendering_state = nil -- Remove any partial rerendering icon
self.ui.view:onSetViewMode("page") -- Get out of scroll mode
if self.ui.font.gamma_index < 30 then -- Increase font gamma (if not already increased),
if self.ui.document.configurable.font_gamma < 30 then -- Increase font gamma (if not already increased),
self.ui.document:setGammaIndex(30) -- as downscaling will make text grayer
end
self.ui.document:setImageScaling(false) -- No need for smooth scaling as all will be downscaled