nazeka icon indicating copy to clipboard operation
nazeka copied to clipboard

Font size problem

Open rampaa opened this issue 4 years ago • 1 comments

Nazeka sometimes uses the font size of a character instead of the selected font size in its options, you can try it out with: Font size test.txt (just rename the .txt as .html. Apparently Github doesn't support uploading HTML files.)

The displayed text size is also getting affected when one zooms in/out a page, but I think it shouldn't.

rampaa avatar May 05 '20 05:05 rampaa

Nazeka sometimes uses the font size of a character instead of the selected font size in its options,

This happens on pages with aggressive/poorly written CSS because nazeka doesn't use shadow DOM to stop the cascade like e.g. yomichan does. It's on my long-term todo list. Nazeka won't work 100% properly on pages that directly restyle the 'div' element (or other elements) unless I stuff a CSS reset inside of the popup element or something.

The displayed text size is also getting affected when one zooms in/out a page, but I think it shouldn't.

Unfortunately, I can't control this. If you have a site that you always read zoomed-in or zoomed-out, you could zoom it with the stylus extension somehow (https://addons.mozilla.org/en-US/firefox/addon/styl-us/) instead of using the browser's zoom feature. Not sure exactly what the CSS would have to look like, though.

wareya avatar May 05 '20 06:05 wareya