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
High DPI setup. #10
Open
dumol
wants to merge
92
commits into
master
Choose a base branch
from
hidpi
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
High DPI setup. #10
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a PixelPerfect FontConfig setup geared towards high DPI displays such as modern laptops, tablets, and smartphones.
If you are using a low DPI device (less than 120 dpi) stick to the master branch for now, as more configuring is needed to test this branch in such a scenario. (Improvements are coming your way too, be patient.)
How to test:
~/.config/fontconfig
and~/.local/share/fonts
(These do not exist by default in any OS that I know.)$HOME
the PixelPerfect-hidpi-0.4beta2.tar.gz released archive:ui-monospace
for the second command, but beware the monospace option won't show up properly in the GNOME Tweaks app.)theme_pixel_ratio
to1.5
(it's usually1.75
) to take advantage of the improved Fontconfig setup, as detailed at https://forum.sailfishos.org/t/ui-themer-missing-from-openrepos/2457/89. Then you can also set Asap as UI font (falling back to Roboto and Arimo) in~/.config/fontconfig/os/sfos.conf
instead of Barlow and its fallbacks. Also, in Settings->Display->Text Size, "normal" is now actually "small", and you have to set "large" to get "normal" text sizes. The only known downside to this change of theme pixel ratio: the “diallers” in the Phone app and the locked screens looking a bit more cramped than they should.Check out https://reeddesign.co.uk/test/webfonts.html to see the improvements. Many other web pages should benefit from this setup, including GitHub's web interface here. You can even disable loading remote fonts in your browser, but please report any sites not looking good afterwards.
Do let me know your thoughts on this, thanks!
Instead of step 2, you can also do this:
~/.config/fontconfig
.common*
andhidpi*
packages. However, thecommon-hacks
archive is only needed if you block remote fonts in your browser.~/.local/share/fonts
.