You are not logged in.

#1 2010-05-27 10:50:27

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Conky and xft fonts

WM: Openbox
I have these in my conkyrc:

override_utf8_locale yes
use_xft yes
xftfont Terminus:size=8
xftalpha 0.8

But it doesn't display the desired fonts, if launched from a terminal error is:

Conky: can't load Xft font 'Pie charts for maps:size=8'
Conky: can't load Xft font 'Radio Space:size=8'
Conky: can't load Xft font 'Pie charts for maps:size=8'
Conky: can't load Xft font 'Radio Space:size=8'

hmm


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#2 2010-05-27 18:20:23

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Conky and xft fonts

Halp.jpg


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#3 2010-05-27 19:32:00

pablokal
Member
From: Nijmegen, Holland
Registered: 2010-03-07
Posts: 96
Website

Re: Conky and xft fonts

Hi Shy
You have to install dmenu-xft
Look here: http://aur.archlinux.org/packages.php?ID=28745

There is a problem with the packagebuild on this page though.
It should be:

   

 pkgname=dmenu-xft
    pkgver=4.0
    pkgrel=1
    pkgdesc="Dynamic X menu - with xft support"
    arch=('i686' 'x86_64')
    url="http://code.suckless.org/"
    license=('MIT')
    depends=('libx11' 'libxinerama' 'libxft')
    conflicts=('dmenu')
    provides=('dmenu')
    source=(http://dl.suckless.org/tools/dmenu-4.0.tar.gz
    http://z.ip.fi/~henkka/dmenu-xft/dmenu-4.0-xft.diff)

    md5sums=('66e761a653930cc8a21614ba9fedf903'
    '1f3ecd819a39dea88a3dde9b5271bec6')

    build() {
    cd $srcdir/dmenu-$pkgver
    patch -p1 < ../dmenu-4.0-xft.diff || return 1 make || return 1 make DESTDIR=$startdir/pkg PREFIX=/usr install || return 1 # LICENSE mkdir -p $startdir/pkg/usr/share/licenses/$pkgname || return 1 cp LICENSE $startdir/pkg/usr/share/licenses/$pkgname/ || return 1 
}

Save this as PKGBUILD textfile and run makepkg where you saved PKGBUILD.
But first uninstall the dmenu version you have with
sudo pacman -Rd dmenu


GNu/Linux: Nu nog schoner: http://linuxnogschoner.blogspot.com/

Offline

#4 2010-05-28 02:06:20

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Conky and xft fonts

I'm not using dmenu though. I just can't display the fonts in conky. My font paths are defined in xorg.conf:

$ grep font /var/log/Xorg.0.log
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi,
    /usr/share/fonts/75dpi,
    /usr/share/fonts/TTF,
    /usr/share/fonts/Type1,
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF,
    /usr/share/fonts/Type1

I have these:

freetype2-ubuntu fontconfig-ubuntu libxft-ubuntu cairo-ubuntu

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#5 2010-05-28 03:30:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Conky and xft fonts

I'll ask the obvious question: you have reloaded the font cache?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2010-05-28 04:16:51

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: Conky and xft fonts

Not sure terminus is an XFT font, also, it's in /usr/share/fonts/local which you don't seem to have in your xorg.conf.


The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#7 2010-05-28 04:21:21

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Conky and xft fonts

jasonwryan wrote:

I'll ask the obvious question: you have reloaded the font cache?

Yep

Meyithi wrote:

Not sure terminus is an XFT font, also, it's in /usr/share/fonts/local which you don't seem to have in your xorg.conf.

I'm not having problems with terminus but other fonts like Pie Charts, Radiospace, etc. which are in /usr/share/fonts/TTF folder.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#8 2010-05-28 04:28:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Conky and xft fonts

You could try copying those fonts to ~/.fonts, reloading the cache and see if that makes any difference...

(That's how I had OpenLogos set up under OB)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2010-05-28 04:30:46

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Conky and xft fonts

Hmm I'll try that. Btw yikes

[pdg@scarlet ~]$ ls /usr/share/fonts/local 
ls: cannot access /usr/share/fonts/local: No such file or directory
[pdg@scarlet ~]$ ls /usr/share/fonts/
100dpi/    cyrillic/  misc/      TTF/       util/      
75dpi/     encodings/ truetype/  Type1/

Weird thing is openlogos is working! But the rest are not.

Last edited by sHyLoCk (2010-05-28 04:32:13)


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#10 2010-05-28 04:34:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Conky and xft fonts

That's not right:

┌─[Longbow][~]
└─╼ ls -la /usr/share/fonts
total 236
drwxr-xr-x  11 root root  4096 Nov 18  2009 .
drwxr-xr-x 134 root root  4096 May 28 08:58 ..
drwxr-xr-x   2 root root 86016 Mar 10 11:00 100dpi
drwxr-xr-x   2 root root 86016 Mar 10 11:01 75dpi
drwxr-xr-x   2 root root  4096 Nov  1  2009 cyrillic
drwxr-xr-x   3 root root  4096 Nov  2  2009 encodings
drwxr-xr-x   2 root root 12288 Mar  3 08:46 local
drwxr-xr-x   2 root root 20480 Mar 10 11:01 misc
drwxr-xr-x   2 root root  4096 May 27 14:10 TTF
drwxr-xr-x   2 root root  4096 Mar 29 12:02 Type1
drwxr-xr-x   2 root root  4096 Nov  1  2009 util

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2010-05-28 04:53:05

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Conky and xft fonts

I has no local directory!!
Someone please tar their local dir and ompload it 4me..??
lol

I have no idea why I don't have it. hmm


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#12 2010-05-28 06:32:42

pseup
Member
Registered: 2008-06-06
Posts: 103

Re: Conky and xft fonts

There is no /usr/share/fonts/local unless you have installed something that created it. Quite commonly 'terminus-font'.

Offline

#13 2010-05-29 19:57:30

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Conky and xft fonts

pseup wrote:

There is no /usr/share/fonts/local unless you have installed something that created it. Quite commonly 'terminus-font'.

Ok installed terminus-font, ran fc-cachem, put the local font path in xorg.conf but still no luck.:(


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

Board footer

Powered by FluxBB