Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2013 16:46:03 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Cc:        freebsd-x11@freebsd.org
Subject:   adding a TrueType font
Message-ID:  <20130319154603.GA5474@tinyCurrent>

next in thread | raw e-mail | index | archive | help

Hello,

I have a need for a very special font (which is used for the chars how
they are teached to my son in school in first grade). I have found the
TTF file and installed it as:

$ file /usr/local/lib/X11/fonts/TrueType/DruckschriftBayern.ttf 
/usr/local/lib/X11/fonts/TrueType/DruckschriftBayern.ttf: TrueType font data

and did the additional steps as described in the handbook
http://www.freebsd.org/doc/handbook/x-fonts.html

The new font shows up fine in some KDE apps, in firefox etc.; as well I
can see it with fc-list(1) as:

$ fc-list | fgrep BY
Druckschrift BY WOK:style=Medium

but I can't use is, for example with xterm, it says:

$ xterm -fn 'Druckschrift BY WOK'
xterm: cannot load font Druckschrift BY WOK

and even more magic: I can set it in 'kedit' via preferences, but when I
launch it from cmd line it says:

$ kedit --fn 'Druckschrift BY WOK'
QFont::setRawName(): Invalid XLFD: "Druckschrift BY WOK"

Any idea why is this? I'd like to have it in xterm or in uRxvt, even
better.

Thanks

	matthias
-- 
Matthias Apitz               |  /"\ ASCII Ribbon Campaign: www.asciiribbon.org
E-mail: guru@unixarea.de     |  \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X  - No proprietary attachments
phone: +49-170-4527211       |  / \ - Respect for open standards



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130319154603.GA5474>