[i3-discuss] Re: Extremely tiny fonts with 4k monitor with i3

  • From: Michael Stapelberg <michael@xxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Tue, 15 Dec 2015 10:14:56 +0100

12/15/2015 10:07:56 AM - main.c:main:494 - root_screen->height_in_pixels =
2160, root_screen->height_in_millimeters = 279, dpi = 196
12/15/2015 10:07:56 AM - main.c:main:495 - One logical pixel corresponds to
3 physical pixels on this display.

You might want to use a DPI of 192 (for clean 2x scaling) instead of 196,
but that’s up to you.

You’re using a pixel font, which cannot be scaled:
12/15/2015 10:07:56 AM - config_parser.c:parse_config:313 - CONFIG(line
16): font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1

Once you switch to a pango-based font, window decorations should be
properly scaled.

Fonts within applications are not influenced by i3, for that you’ll need to
follow e.g. https://wiki.archlinux.org/index.php/HiDPI

On Tue, Dec 15, 2015 at 10:10 AM, Zenny <garbytrash@xxxxxxxxx> wrote:

On 12/15/15, Michael Stapelberg <michael@xxxxxxxx> wrote:
Which version of i3? Make sure you run at least 4.11. If that doesn’t
help,
please file an issue at https://github.com/i3/i3

$ i3 --moreversion 2>&- || i3 --version
Binary i3 version: 4.11 (2015-09-30, branch "4.11") © 2009 Michael
Stapelberg and contributors

and supply a logfile.

Here it is:
http://logs.i3wm.org/logs/5684961520648192.bz2


On Tue, Dec 15, 2015 at 9:21 AM, Zenny <garbytrash@xxxxxxxxx> wrote:

Hi,

The fonts are rendered extremely tiny (unreadable) with i3 in 4k
monitor.

§1. I tried with 'startx -- -dpi 196', but that just increases the
size of the workspace bar and not other application windows.

§2. I also added a line in .i3/config file with a larger fontsize:
'font pango:DejaVu Sans 10'

§3. I tried with 'xrandr --dpi 196'

§4. Tried with 'Xft.dpi: 196' in .Xresources file.

On all accounts, there was no changes at all.

Found a similar thread at


https://www.reddit.com/r/linux/comments/31d0wp/i3_and_hidpi_display_everything_is_to_tiny/

Is there a way to overcome this problem? Thanks.

/z




--
Best regards,
Michael





--
Best regards,
Michael

Other related posts: