Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2013 17:23:14 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-x11@freebsd.org
Subject:   Re: adding a TrueType font
Message-ID:  <20130319162314.GA5800@tinyCurrent>
In-Reply-To: <20130319161351.GA1603@squirrel.exwg.net>
References:  <20130319154603.GA5474@tinyCurrent> <20130319161351.GA1603@squirrel.exwg.net>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Tuesday, March 19, 2013 a las 05:13:52PM +0100, Christoph Moench-Tegeder escribió:

> ## Matthias Apitz (guru@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@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@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?20130319162314.GA5800>