Skip to content

Commit

Permalink
Disable subpixel smoothing when the reader is going to be inverted (#…
Browse files Browse the repository at this point in the history
…1137)

This prevents chromatic aberration on text in the 'Invert' theme
  • Loading branch information
colons committed Nov 19, 2023
1 parent 446eb16 commit 56fb0c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web/epub-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ const setStyle = style => {
'background': bgColor,
'font-size': `${fontSize}px !important`,
'line-height': `${spacing} !important`,
'-webkit-font-smoothing': invert ? 'antialiased' : 'auto',
'-webkit-hyphens': hyphenate ? 'auto' : 'manual',
'-webkit-hyphenate-limit-before': 3,
'-webkit-hyphenate-limit-after': 2,
Expand Down

0 comments on commit 56fb0c7

Please sign in to comment.