michaldaniel / ebook-viewer

Modern GTK Python Ebook Reader app to easily read epub files
GNU General Public License v3.0
406 stars 47 forks source link

Can only view images, not text #23

Open ghost opened 7 years ago

ghost commented 7 years ago

I tried with several epubs, but none is opened correctly. I see a black background, with only images showing correctly (all spaced like the text was really there, just I cannot see it). No errors are displayed. You can try for example this Open epub from project gutenberg: http://www.gutenberg.org/ebooks/53979 (ebook with images).

I'm on archlinux, using this pkgbuild: https://aur.archlinux.org/packages/ebook-viewer-git/

Python 3.6 Webkit 2.4.11 Gobject introspection 1.50.0+1+gb8d92b0

Please tell me if more info are needed

rafaelmardojai commented 7 years ago

I opened the epub you linked and i can see the text perfectly.

captura de pantalla de 2017-01-17 12-49-22

Maybe a theme related bug...

ghost commented 7 years ago

I'm using the default, Adwaita

ghost commented 7 years ago

Some follow-up: the issue happens only with the day theme. It doesn't happen anymore if I change to self.set_transparent(False) in viewer.py (which breaks the night theme though 😄 )

michaldaniel commented 7 years ago

@andya9 Can you try building from source? If the issue is still present attach some screen shot. I might need some additional info about your WebKit version, GTK version and what DE and GTK Theme are you using.

ghost commented 7 years ago

I was already building from source. I rebuilded it now and the issue persists: here a screenshot. You can see the black window, with three small rectangles which are images; the real file as text all around.

Python 3.6 Webkit 2.4.11 Gobject introspection 1.50.0+1+gb8d92b0 Gtk 3.22.7 DE: openbox Theme: Adwaita

uriel1998 commented 6 years ago

I have exactly the same issue (though switching theme doesn't seem to matter), but may be able to provide some insight; looking at this book, I can just see the header text.

2017-07-27--1501198621_789x712_scrot

I am also using a GTK3 theme (Miniwata) with the "use global dark theme" switch set, though that doesn't seem to matter. Are the font or colors set by the ePub CSS at all? Or are they set directly in the code?