sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

[Linux] Blurry Font

Open the-shank opened this issue 1 year ago • 20 comments

Hello, thank you for the wonderful software.

I am having blurry fonts in Sioyek, as is evident from the screenshot below: image

My System Details are: image

I am using Sioyek version 2.0.0

I am seeing the same behaviour as mentioned in this comment, in that, fit_to_page_width only shows the left 50% of the page and I cannot move right either.

Is there any other information I can provide to help narrow this down?

the-shank avatar Feb 27 '23 19:02 the-shank

Is the issue still present in the latest experimental builds here: https://github.com/hexomancer/sioyek/releases/tag/v0.31.433 ?

ahrm avatar Feb 27 '23 20:02 ahrm

Thanks for the prompt response. I am still having this issue on the latest build that you linked to.

image

Here are the logs from the command line.

$> ./Sioyek-x86_64.AppImage ~/Downloads/06008321_Annual.pdf
Setting $XDG_CONFIG_HOME to /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config
QApplication: invalid style override 'kvantum' passed, ignoring it.
	Available styles: Windows, Fusion
default_config_path: /tmp/.mount_Sioyek1KrA5L/usr/bin/prefs.config
default_keys_path: /tmp/.mount_Sioyek1KrA5L/usr/bin/keys.config
user_config_path: [ 0 ] /etc/xdg/Sioyek-x86_64.AppImage/prefs_user.config
user_config_path: [ 1 ] /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/Sioyek-x86_64.AppImage/prefs_user.config
user_config_path: [ 2 ] /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/prefs_user.config
user_config_path: [ 3 ] /home/shank/.config/sioyek/prefs_user.config
user_keys_path: [ 0 ] /etc/xdg/Sioyek-x86_64.AppImage/keys_user.config
user_keys_path: [ 1 ] /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/Sioyek-x86_64.AppImage/keys_user.config
user_keys_path: [ 2 ] /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/keys_user.config
user_keys_path: [ 3 ] /home/shank/.config/sioyek/keys_user.config
database_file_path: /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/test.db
local_database_file_path: /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/local.db
global_database_file_path: /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/shared.db
tutorial_path: /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/tutorial.pdf
last_opened_file_address_path: /home/shank/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/last_document_path.txt
shader_path: /tmp/.mount_Sioyek1KrA5L/usr/bin/shaders
Creating shared memory block...
Shared memory already exists: this is a secondary application.
Secondary application attaching to shared memory block...
Secondary application successfully attached to shared memory block.
Secondary application sent message to IPC server.

the-shank avatar Feb 27 '23 20:02 the-shank

the app suddenly started to be blurry with me as well. It was alright before. Lines are also missing at times. Okular pdf viewer works. I suppose it's something related to some configuration somewhere.

I am using a modern Lenovo laptop on Linux fedora

I installed the 1.5 version and it does not have the font problem but reinstalling the 2.0 I still have the font problem

userrand avatar Jun 15 '23 08:06 userrand

Can you share your prefs_user.config here? Also did you change anything about your monitors, eg. using multiple monitors, etc.

ahrm avatar Jun 15 '23 09:06 ahrm

Can you share your prefs_user.config here? Also did you change anything about your monitors, eg. using multiple monitors, etc.

I deleted it to see if the problem was there but it seems that was not the problem. It had a color configuration that would change the color with toggle_custom_color . I do not remember monitor changes since last I really used it but I think I was trying to install from source at some point in the past as I have a bunch of left over folders. It seems to me that the problem is related to mupdf somehow but I am just guessing.

I redownloaded a different color scheme from the same repository. Here is the config now (It's alright with v 1.5)

custom_background_color #282828 custom_text_color #ebdbb2

page_separator_color #282828 search_highlight_color #fabd2f status_bar_color #282828 status_bar_text_color #ebdbb2 ui_text_color #ebdbb2 ui_selected_text_color #ebdbb2 ui_background_color #3c3836 ui_selected_background_color #665c54 background_color #282828 visual_mark_color 0.4 0.36078432 0.32941177 0.2 text_highlight_color #665c54 link_highlight_color #83a598 synctex_highlight_color #fb4934

userrand avatar Jun 15 '23 10:06 userrand

Does the issue happen on a fresh portable AppImage from here: https://github.com/ahrm/sioyek/releases/tag/v2.0.0?

ahrm avatar Jun 17 '23 16:06 ahrm

Does the issue happen on a fresh portable AppImage from here: https://github.com/ahrm/sioyek/releases/tag/v2.0.0?

If that is the same as downloading the latest version from https://github.com/ahrm/sioyek/releases, then yes. But I also have another app that has a fuzzy font when showing popups, so it might be a global issue somewhere. Similar popup functionality on another electron app seems alright.

userrand avatar Jun 18 '23 15:06 userrand

I can confirm this issue on my laptop. It presents when I use the sioyek on the external monitor. I'm running on the KDE wayland and here is the detail of my system setup:

OS: Arch Linux x86_64 
Host: 21CX ThinkBook 14 G4+ IAP 
Kernel: 6.4.8-zen1-1-zen 
Uptime: 11 hours, 23 mins 
Packages: 3134 (pacman), 22 (flatpak) 
Shell: zsh 5.9 
Resolution: 1920x1080 
DE: Plasma 5.27.7 
WM: kwin 
Theme: [Plasma], Adwaita-dark [GTK2/3] 
Icons: breeze-dark [Plasma], breeze-dark [GTK2/3] 
Terminal: yakuake 
CPU: 12th Gen Intel i5-12500H (16) @ 4.500GHz 
GPU: Intel Alder Lake-P 
Memory: 10391MiB / 15719MiB 

LumenYoung avatar Aug 09 '23 15:08 LumenYoung

@ahrm does sioyek support wayland natively? Maybe this issue is because it is running on XWayland, which has some issues with font rendering on hidpi monitors https://www.reddit.com/r/archlinux/comments/ms2udu/blurry_font_on_some_applications/

DhruvaSambrani avatar Oct 23 '23 16:10 DhruvaSambrani

We don't interact with display servers directly (only through qt) so it depends on the qt version linked with sioyek.

ahrm avatar Oct 23 '23 16:10 ahrm

@LumenYoung can you try to run xprop and click on sioyek window? If you are able to click it, then you are running on xwayland. If you do not see a cursor, sioyek is running natively, and the issue is elsewhere

DhruvaSambrani avatar Oct 24 '23 08:10 DhruvaSambrani

I'm having a similar issue, and I'd guess that the issue is related to hidpi screens (possibly in combination with wayland). I have a hidpi laptop screen (on which sioyek renders nicely) and a non-hidpi screen (on which sioyek renders as the earlier screenshots).

I'm also on wayland (sway in case it's relevant), and sioyek is running natively (swaymsg -t get_tree reports xdg-shell for the window rather than xwayland).

elegios avatar Oct 24 '23 13:10 elegios

Any update on this? I have the same issue on Mac as well, and it looks like a hidpi problem as @elegios mentioned: on my Macbook's hidpi screen the fonts look nice, but I also have an older monitor with regular dpi and it looks blurry.

I can set display_resolution_scale to 0.5 and then the issue is "reversed": looks normal on regular dpi screen but blurry on hidpi.

This is what has been preventing me from using sioyek (been using zathura, but its trackpad scrolling is janky so really want to move on to something better).

griffinwxk avatar Nov 15 '23 13:11 griffinwxk

On Macbook, I found a workaround by adding this to prefs_user.config:

linear_filter 1

On my external monitor, this was before: Screen Shot 2023-11-19 at 4 01 46 PM

After: Screen Shot 2023-11-19 at 4 01 25 PM

And Mac's native Preview app (for comparison): Screen Shot 2023-11-19 at 4 01 16 PM

zetaqubit avatar Nov 20 '23 00:11 zetaqubit

On Macbook, I found a workaround by adding this to prefs_user.config:

linear_filter 1

On my external monitor, this was before: Screen Shot 2023-11-19 at 4 01 46 PM

After: Screen Shot 2023-11-19 at 4 01 25 PM

And Mac's native Preview app (for comparison): Screen Shot 2023-11-19 at 4 01 16 PM

It works for me. Thanks! I think I can accept the result personally, although it still does look a little bit worse than "usual" anti-aliasing on other apps. Hope it gets fixed down the line.

griffinwxk avatar Nov 20 '23 14:11 griffinwxk

@ahrm Is there a way to make it look fully like macOS native apps (like Preview and Skim) in terms of font rendering? Sioyek's font rendering still looks a bit too thin, and the corners are a bit too rough.

haoming-li-ling avatar Nov 21 '23 01:11 haoming-li-ling

No.

ahrm avatar Nov 21 '23 08:11 ahrm

Same problems happens on my pc running arch linux as well. The Sioyek works well previously, after a system update, it becomes blur.

RomaLzhih avatar May 15 '24 00:05 RomaLzhih

Which sioyek version are you using?

ahrm avatar May 15 '24 08:05 ahrm

2.0.0-6, link

RomaLzhih avatar May 20 '24 05:05 RomaLzhih