[Xfce-bugs] [Bug 3984] New: Xft.dpi should be set even if it use "default value"

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Apr 5 00:23:33 CEST 2008


DO NOT REPLY TO THIS EMAIL.  Also, do not reply via email to the person
whose email is mentioned below.  To comment on this bug, please visit:
http://bugzilla.xfce.org/show_bug.cgi?id=3984

           Summary: Xft.dpi should be set even if it use "default value"
           Product: Xfce
           Version: 4.4.2
          Platform: PC (x86)
               URL: http://le-
                    gall.net/sylvain+violaine/blog/index.php?2008/04/05/41-
                    openofficeorg-fonts-too-big-in-xfce
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: general
        AssignedTo: xfce-bugs at xfce.org
        ReportedBy: gildor at debian.org


If Xft.dpi is not set, some application behave in a strange way (in my example,
OpenOffice display font that are too big compared to Thunar).

The solution is to set Xft.dpi using X default value. 

Here us my little script to do that:

#!/bin/sh

xrdb -query Xft.dpi | grep Xft.dpi > /dev/null && exit 0
RESOLUTION=`xdpyinfo | grep resolution | sed "s/.* \\([0-9][0-9]*\\)x.*/\\1/"`
TMP=`mktemp`
trap "rm -f $TMP" EXIT
echo "Xft.dpi: $RESOLUTION" > $TMP
xrdb -merge $TMP


-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Xfce-bugs mailing list