Conversation
This file contains hidden or 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
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/fontconfigand~/.local/share/fonts(These do not exist by default in any OS that I know.)$HOMEthe PixelPerfect-hidpi-0.4beta2.tar.gz released archive:ui-monospacefor the second command, but beware the monospace option won't show up properly in the GNOME Tweaks app.)theme_pixel_ratioto1.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.confinstead 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-hacksarchive is only needed if you block remote fonts in your browser.~/.local/share/fonts.