adding a TrueType font
Matthias Apitz
guru at unixarea.de
Tue Mar 19 16:23:18 UTC 2013
El día Tuesday, March 19, 2013 a las 05:13:52PM +0100, Christoph Moench-Tegeder escribió:
> ## Matthias Apitz (guru at unixarea.de):
>
> > but I can't use is, for example with xterm, it says:
> >
> > $ xterm -fn 'Druckschrift BY WOK'
> > xterm: cannot load font Druckschrift BY WOK
I figured out that it works with -fn this way:
$ fgrep BY /usr/local/lib/X11/fonts/TrueType/fonts.dir
DruckschriftBayern.ttf -misc-Druckschrift BY WOK-medium-r-normal--0-0-0-0-p-0-ascii-0
DruckschriftBayern.ttf -misc-Druckschrift BY WOK-medium-r-normal--0-0-0-0-p-0-iso10646-1
$ xterm -fn '-misc-Druckschrift BY WOK-medium-r-normal--0-0-0-0-p-0-iso10646-1'
$ urxvt -fn '-misc-Druckschrift BY WOK-medium-r-normal--0-0-0-0-p-0-iso10646-1'
> xterm uses -fa for fontconfig (that includes TrueType) fonts, -fn
> is for "classical" X fonts. See this example:
> : cmt at squirrel:/usr/ports$ xterm -fa "Droid Serif"
> -> gives xterm with a somewhat ugly font (I might have to tweak other
> settings, too)
using -fa (thanks for your hint) I can use as well:
$ xterm -fa 'Druckschrift BY WOK'
Thanks
matthias
--
Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org
E-mail: guru at 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
More information about the freebsd-x11
mailing list