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

High DPI setup. #10

Open
wants to merge 92 commits into
base: master
Choose a base branch
from
Open

High DPI setup. #10

wants to merge 92 commits into from

Conversation

dumol
Copy link
Owner

@dumol dumol commented Nov 20, 2023

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:

  1. Make sure you move aside whatever you have in ~/.config/fontconfig and ~/.local/share/fonts (These do not exist by default in any OS that I know.)
  2. Download and unpack in $HOME the PixelPerfect-hidpi-0.4beta2.tar.gz released archive:
cd ~
curl -LO https://github.com/dumol/PixelPerfect/releases/download/v0.4.0beta2/PixelPerfect-hidpi-0.4beta2.tar.gz
tar xvfz PixelPerfect-hidpi-0.4beta2.tar.gz
  1. If using a desktop environment, configure your device to use System-ui or Asap for the interface text and ui-monospace or Cascadia Code PL SemiLight for monospace text (these should be identical). E.g., for GNOME, use the commands added to the README through 06bfc73. (You can use ui-monospace for the second command, but beware the monospace option won't show up properly in the GNOME Tweaks app.)
  2. Log out and in again to fully propagate the changed settings.
  3. If you use Flatpak and/or Snap apps, run the instructions added to the README through 06bfc73.
  4. If you use Sailfish OS, you should also change theme_pixel_ratio to 1.5 (it's usually 1.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:

  • Clone this repo and check out this branch, then symlink the resulting directory as ~/.config/fontconfig.
  • Download the relevant pre-release 0.4beta2 tarballs from https://github.com/dumol/PixelPerfect/releases/tag/v0.4.0beta2. Those would be the common* and hidpi* packages. However, the common-hacks archive is only needed if you block remote fonts in your browser.
  • Unpack those tarballs to ~/.local/share/fonts.

@dumol dumol mentioned this pull request Feb 19, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant