Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No subpixel font smoothing in flathub version, subpixel smoothing in MS .deb version. #398

Open
trr opened this issue May 3, 2023 · 1 comment

Comments

@trr
Copy link

trr commented May 3, 2023

Flathub version doesn't have subpixel font smoothing, while the .deb from Microsoft's repositories does, with same font and same config.

Using most recent flathub version at the time. I tried manually starting with --force-device-scale-factor=1 added to the flatpak run command as recommended by many sites and it didn't help.

This coupled with issues with certain extensions that don't expect to be sandboxed, and the in-built terminal needing extra tweaks makes the flatpak version a worse experience. No doubt there's extra difficulty passing in the font smoothing config into a flatpak app but other flatpak apps do manage as well as electron apps that don't use flatpak.

@westurner
Copy link

westurner commented Mar 6, 2024

Various font-related flags I found in solving for blurry fonts on wayland (#471 (comment) ) ::

--font-render-hinting=none
--font-render-hinting=full

--enable-font-subpixel-positioning
--disable-font-subpixel-positioning

--enable-use-zoom-for-dsf

--force-device-scale-factor=1.12

--disable-gpu

And then this worked; which also already works in VScodium fwics:

flatpak --socket=wayland run com.visualstudio.code --enable-features=UseOzonePlatform --ozone-platform=wayland

edit: here's my .desktop file, which supersedes the system com.visualstudio.code.desktop:

$ cat ~/.local/share/applications/com.visualstudio.code.desktop 
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=code --file-forwarding --socket=wayland com.visualstudio.code --enable-features=UseOzonePlatform --ozone-platform=wayland --reuse-window @@ %F @@
Icon=com.visualstudio.code
Type=Application
StartupNotify=true
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;
X-Flatpak-Tags=proprietary;
X-Flatpak=com.visualstudio.code

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=code --file-forwarding --socket=wayland com.visualstudio.code --enable-features=UseOzonePlatform --ozone-platform=wayland --new-window @@ %F @@
Icon=com.visualstudio.code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants