diff options
author | Michele Calgaro <[email protected]> | 2021-10-04 17:04:23 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-10-07 10:37:30 +0900 |
commit | a1a836e148f3d58ce1e330b3d2b2dca5b151d44a (patch) | |
tree | c310123319a89ad3bba425811e722001318943b0 /starttde | |
parent | 619ac6d9ff32c28c1e67662ed31767cfd8d99399 (diff) | |
download | tdebase-a1a836e148f3d58ce1e330b3d2b2dca5b151d44a.tar.gz tdebase-a1a836e148f3d58ce1e330b3d2b2dca5b151d44a.zip |
Added support for variable font DPI (range 64-512) in user session.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit e8d86645043847265b61825c9a1f20a6b93cc924)
Diffstat (limited to 'starttde')
-rwxr-xr-x | starttde | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -377,6 +377,7 @@ kcmrandrrc [Screen0] kcmrandrrc [Screen1] kcmrandrrc [Screen2] kcmrandrrc [Screen3] +kcmfonts General forceFontDPIEnable false kcmfonts General forceFontDPI 0 EOF $TDEDIR/bin/tdestartupconfig @@ -474,14 +475,15 @@ if test -z "$dl" && test "$kpersonalizerrc_general_firstlogin" != "true"; then esac fi -if test "$kcmfonts_general_forcefontdpi" -eq 120; then - xrdb -quiet -merge -nocpp <<EOF -Xft.dpi: 120 -EOF -elif test "$kcmfonts_general_forcefontdpi" -eq 96; then - xrdb -quiet -merge -nocpp <<EOF -Xft.dpi: 96 -EOF +if test "$kcmfonts_general_forcefontdpienable" = "true"; then + echo "[starttde] Setting font DPI to $kcmfonts_general_forcefontdpi" 1>&2 + tmpfile=$(mktemp /tmp/xft_dpi_settings.XXXXXX) + echo "Xft.dpi: $kcmfonts_general_forcefontdpi" > $tmpfile + xrdb -quiet -merge -nocpp $tmpfile + rm $tmpfile +else + echo "[starttde] Clearing setting of font DPI value" 1>&2 + xrdb -quiet -remove -nocpp Xft.dpi fi # Configuration of the gtk_qt_engine if not already set. |