You are not logged in.

#1 2012-01-23 20:58:33

colbert
Member
Registered: 2007-12-16
Posts: 809

Strange font issue

I am having an odd issue with fonts, something is triggering them to look differently immediately after my fluxbox session starts. The following is a screenshot of a thunar window that starts automatically, followed by one I open right after:

Before: http://i.imgur.com/ED34n.png
After: http://i.imgur.com/yh1Ry.png

Before is crisp and proper, after is fuzzier and larger, not sharp at all, noticeably different (hopefully in the images but certainly here on my monitor). This happens with all GTK apps. I also have deluge-gtk running automatically on start-up, and it looks perfectly fine; if I exit it and run it again, however, it's fuzzy and large in font as above.

Here is my .fluxbox/startup apps:

xset -dpms &
xset s off &
xset r rate 250 30 &
xset m 1/1 4 &
keytouchd &
xrdb ~/.Xdefaults &
nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1 &
thunar-volman &
blueman-applet &
sleep 7 && conky &
thunar &
deluge-gtk &
irexec &
sleep 13s && urxvt -e screen &

This only started happening recently and I have not changed any settings nor anything in the startup. Appreciate any help, thanks smile

Offline

#2 2012-01-23 23:47:03

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Strange font issue

"xrdb"? I thought that line should be the standard:

xrdb -merge ~/.X<whatever>

Offline

#3 2012-02-10 03:28:08

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

^^ Even with the above substituted in ~/.fluxbox/startup, still an issue here...

Offline

#4 2012-04-16 00:14:18

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

Just bumping as it's still an issue, nothing major but certainly puzzling, haven't been able to sort this out yet sad

Offline

#5 2012-04-16 17:33:54

eric
Member
From: under heaven
Registered: 2004-02-11
Posts: 118

Re: Strange font issue

The larger font may be the result of a higher DPI value.

Maybe the DPI is changed during the Fluxbox startup?
Look inside the ~/.Xdefaults file, maybe there is a line like 'Xft.dpi: 96'. Disable that line by putting a '!' (not '#') in front of it.
Also most applications use ~/.Xresources.

You can also execute 'xrdb -query' before and after Fluxbox startup and see if the DPI has been changed.

Offline

#6 2012-04-16 18:31:51

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

Thanks eric! I have no dpi line in my ~/.Xdefaults, but here is my ~/.Xresources:

> cat .Xresources 
Xft.autohint: 0
Xft.lcdfilter:  lcddefault
Xft.hintstyle:  hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.dpi: 96
Xft.rgba: rgb

So I have a 96 value line right there. Now, I have auto-login set in my inittab to hop right into fluxbox on boot, so how should I debug this? Or should I just comment out that "Xft.dpi: 96" line from ~/.Xresources? (I'm just using putty remotely now so can't test until I get home). Thanks again! smile

Offline

#7 2012-04-16 19:11:13

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: Strange font issue

colbert wrote:

So I have a 96 value line right there. Now, I have auto-login set in my inittab to hop right into fluxbox on boot, so how should I debug this? Or should I just comment out that "Xft.dpi: 96" line from ~/.Xresources? (I'm just using putty remotely now so can't test until I get home). Thanks again! smile

Comment it out, or set it to a value that's native to your monitor (search the internet for your monitor's manual, you can find it there, usually at the end).


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#8 2012-04-16 19:55:55

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

Ok, I will try that, thanks!

Also, I'm having an issue with my other tty shells not working. Say I have some X server issue or freeze in tty7, hitting CTRL+ALT+[1-6] does nothing, my monitor just goes blank as if there's nothing to display. Even putting my login, return, password, return and typing sudo shutdown -r now for example, nothing. So no input is being detected. Just putting this here if I can figure that out as well without making a new thread, thanks a lot smile

Offline

#9 2012-04-16 20:04:16

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: Strange font issue

It happened to me, too. It's because an X application completely paralyzed the whole system.Only this key sequence helped to restart the PC safely:

  • Press Right Alt-SysRq (Print Screen), keep the Alt key pressed, release SysRq

  • Press and release these keys every one second in this order: R E I S U B

It should sync, unmount the disk and reboot the system. If this doesn't help, restart the PC or remove the laptop's battery, put it back on and start the PC/laptop again.

Last edited by bjornoslav (2012-04-16 20:13:12)


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#10 2012-04-16 21:38:24

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

Thanks! I will try that next time, for me it is the odd time XBMC on fullscreen freezes.

For the font issue, I have commented that Xft.dpi: 96 line out of my ~/.Xresources and rebooted, no change. Then I checked here: https://wiki.archlinux.org/index.php/Xo … ze_and_DPI  and following that, I get this:

xdpyinfo | grep -B2 resolution
screen #0:
  dimensions:    1920x1200 pixels (574x372 millimeters)
  resolution:    85x82 dots per inch

So I put this in my /etc/X11/xorg.conf.d/10-monitor.conf in the Monitor section as per the wiki:

    DisplaySize    574 372

Rebooted, and still the same thing. Auto login to fluxbox gives crisp, proper fonts on any windows I have loading via fluxbox's startup file, but running any new windows is the same thing as per the image links in my OP. :S

Offline

#11 2012-04-16 21:42:14

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: Strange font issue


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#12 2012-04-16 22:22:46

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

Damn, I tried that and still the same thing sad Setting it to 96.0 definitely worked in that I could see a difference in the font on fluxbox startup, but still closing thunar for example and running it again was the same thing as OP images (different font size still) sad This is so strange!

The relevant configs I can think of if anyone can find something I've missed:

Monitor section of /etc/X11/xorg.conf.d/10-monitor.conf:

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Acer AL2616W"
    HorizSync       31.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
    DisplaySize    574 372
EndSection
 cat .Xdefaults
Xcursor.theme: Obsidian

URxvt*scrollBar: false
URxvt*geometry: 120x70
URxvt*depth: 32
URxvt*jumpScroll: true
URxvt*skipScroll: true
URxvt*visualBell: false
URxvt*buffered: true
URxvt*background: rgba:0000/0000/0000/6666
URxvt*foreground: #c7c7c7
URxvt*transparent: false
URxvt*fading: 10
URxvt*fadeColor: grey
URxvt*shading: 75
URxvt*font: xft:Terminus-12
URxvt*boldFont: xft:Terminus-12-bold
URxvt*urlLauncher: google-chrome
URxvt.matcher.button:   2
URxvt.perl-ext-common: matcher,clipboard
URxvt.perl-lib: /usr/lib/urxvt/perl/matcher
URxvt*intensityStyles: true
URxvt*internalBorder: 0
URxvt*externalBorder: 1
URxvt*borderLess: false
URxvt*termName: rxvt-unicode
urxvt.colorBD:           #ffffff
urxvt.colorIT:           #bbbbbb
urxvt.colorUL:           #999999
urxvt.underlineColor:    #999999

XTerm*Geometry: 100x60
XTerm*background: Black
XTerm*foreground: White
XTerm*scrollBar: false
XTerm*termName: xterm-256color
 cat .Xresources 
Xft.autohint: 0
Xft.lcdfilter:  lcddefault
Xft.hintstyle:  hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
Xft.dpi: 96.0

And here's from the section of stuff I have set to run in my ~/.fluxbox/startup if helpful:

thunar-volman &
thunar /media/stuff &
xrdb -merge ~/.Xresources &
xset -dpms &
xset s off &
xset r rate 250 30 &
xset m 1/1 &
sabnzbd -f /usr/share/sabnzbd/sabnzbd.ini -l 1 -d &
sickbeard --daemon &
#nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1 &
sleep 7 && conky &
urxvt -e screen &
deluge-gtk &
irexec &
hp-systray &
keytouchd &

Note I tried the "xrdb -merge ~/.Xresources &" line in both ~/.fluxbox/startup and ~/.xinitrc as per bjornoslav's post above...

Thanks again for all the help smile

Offline

#13 2012-04-16 22:29:53

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: Strange font issue

Comment the

xrdb -merge ~/.Xresources &

line in ~/.fluxbox/startup, and make sure your ~/.xinitrc is similar to this:

#!/bin/sh
xrdb -merge ~/.Xresources
exec startfluxbox

As you can see, no ampersands (&)!
Try and tell me if that finally works. smile

EDIT: I fixed the fluxbox starting command in .xinitrc

Last edited by bjornoslav (2012-04-16 22:38:50)


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#14 2012-04-16 23:14:23

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

Still the same thing sad

My ~/.xinitrc is this:

xrdb -merge ~/.Xresources
exec ck-launch-session dbus-launch startfluxbox

I'm just guessing but I wonder if some config somewhere has set my DPI to higher, and it is running for anything after fluxbox's initial startup. This is just too strange. Thanks for all your help mate, this is a bugger :S

Offline

#15 2012-04-16 23:48:46

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: Strange font issue

Maybe it's a font issue. Which font are you using?


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#16 2012-04-16 23:56:17

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

From my ~/.gtkrc-2.0:

gtk-font-name="HandelGotD 12"

My flux font (window titles, taskbar, conky, etc.) are all HeldustryFTVBasic Demi and size 12.

Offline

#17 2012-04-17 00:27:25

eric
Member
From: under heaven
Registered: 2004-02-11
Posts: 118

Re: Strange font issue

The before picture in the OP has smaller fonts. If you want smaller fonts you can put a smaller DPI value in the ~/.Xresources file (Xft.dpi: 85).

You can also type the next line in a shell before starting other applications:

echo 'Xft.dpi: 85' | xrdb -merge

Offline

#18 2012-04-17 00:38:30

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Strange font issue

Yup, I used a DPI calculator to get 87.08 for my resolution+diagonal length of monitor, and I have that in my ~/.Xresources file:

cat .Xresources 
Xft.autohint: 0
Xft.lcdfilter:  lcddefault
Xft.hintstyle:  hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
Xft.dpi: 87.08

Offline

Board footer

Powered by FluxBB