! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
text size bug
Status:
RESOLVED: FIXED
Product:
Xfce-mcs
Component:
General

Comments

Description Sviatoslav Grebenchucov 2006-06-13 23:17:27 CEST
The default font is Sun 9. But this font looks different under the root account.
It becomes very small, so I have to change it to Sun 12. However this font looks good under user accounts.
Comment 1 Olivier Fourdan editbugs 2006-06-14 07:36:42 CEST
the DPI probably gets set/forced by some script, check its value. Or Xorg fails to read the screensize when run with a non root account. The DPI is not managed by xfce, it relies on the X server.
Comment 2 Sviatoslav Grebenchucov 2006-06-20 20:16:38 CEST
I solved the problem! The dpi is actucally set by the Xfce.
This is a pice of /etc/xdg/xfce4

if test -r $BASEDIR/Xft.xrdb; then
  cat $BASEDIR/Xft.xrdb >> $XRESOURCES
elif test -r $XFCE4HOME/Xft.xrdb; then
  mkdir -p $BASEDIR
  cp $XFCE4HOME/Xft.xrdb $BASEDIR/
  cat $BASEDIR/Xft.xrdb >> $XRESOURCES
else
  # Those are fallback settings, use the ui plugin to change it
  # or add your overrides to ~/.Xresources
  # Xft DPI: 96
  # Xft.hintstyle: hintnone/hintslight/hintmedium/hintfull
  # Xft hinting: 1/0
  cat >> $XRESOURCES << EOF
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintmedium
EOF
fi

But when you change your font settings with the User Interface Manager
Xft.xrdb(in ~/.config/xfce4/) is created and without Xft.dpi: 96 ))) so you get very small fonts evrywhere. It will be cool to add a dpi control to the User Interface Manager.
Comment 3 Harold Aling 2007-09-23 18:32:35 CEST
"It will be cool to add a dpi control to the User Interface Manager."

It sure would!
Comment 4 Jean-François Wauthy editbugs 2007-09-23 18:57:42 CEST
there is one in trunk since rev 25770

Bug #1920

Reported by:
Sviatoslav Grebenchucov
Reported on: 2006-06-13
Last modified on: 2009-07-15

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

Additional information