Tilix: Badges don't scale with DPI Scaling

Created on 24 Sep 2018  路  4Comments  路  Source: gnunn1/tilix

Static text in a badge is scaled properly on 96dpi but the font size doesn't scale at 192dpi

At 96dpi, clock/top bar icons for scale:
image

At 192dpi:
image

bug

Most helpful comment

This should work now, needed to use the Pango Context from vte instead of relying on the context passed in.

All 4 comments

Right now it only works with GTK scaling, i.e. GDK_SCALE=2 ./tilix. I'll have a look on the DPI side to see what can be done.

GDK_SCALE=2 tilix worked after closing all instances of tilix but had the unintentional side effect of making my prompt text doubled again (so quadruple scale?)

right now im setting DPI in the following way with ~/.Xresources

            case $2 in
                high)
                    echo "Xft.dpi: 192" > ~/.Xresources
                    cat ~/.Xresources
                    echo "Logout for changes to take effect (Super+Shift+Q)"
                ;;
                low)
                    echo "Xft.dpi: 96" > ~/.Xresources
                    cat ~/.Xresources
                    echo "Logout for changes to take effect (Super+Shift+Q)"
                ;;
                *)
                    cat ~/.Xresources
                ;;
            esac

https://github.com/gregflynn/dotsanity/blob/master/bashrc_helpers/dotsan.sh#L59-L75

Have I just gotten lucky with other GTK based apps that they read this too? I know DPI scaling on *nix is a choose your own adventure of hacks

Frankly it doesn't work right now in Tilix because I'm essentially hand-drawing the badge using Cairo and Pango and I didn't think about DPI scaling. I just need to spend some time looking into it to see what's involved.

This should work now, needed to use the Pango Context from vte instead of relying on the context passed in.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alex285 picture alex285  路  3Comments

roadhoghook picture roadhoghook  路  4Comments

sirex picture sirex  路  3Comments

viniciusban picture viniciusban  路  4Comments

iax7 picture iax7  路  4Comments