Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2013 00:10:42 +0700
From:      Jan Beich <jbeich@tormail.org>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: adding a TrueType font
Message-ID:  <1UI02z-000LQP-T7@internal.tormail.org>
In-Reply-To: <20130319162314.GA5800@tinyCurrent> (Matthias Apitz's message of "Tue, 19 Mar 2013 17:23:14 %2B0100")
References:  <20130319154603.GA5474@tinyCurrent> <20130319161351.GA1603@squirrel.exwg.net> <20130319162314.GA5800@tinyCurrent>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthias Apitz <guru@unixarea.de> writes:

> El d=C3=ADa Tuesday, March 19, 2013 a las 05:13:52PM +0100, Christoph
> Moench-Tegeder escribi=C3=B3:
>
>> ## Matthias Apitz (guru@unixarea.de):
>>=20
>> > but I can't use is, for example with xterm, it says:
>> >=20
>> > $ 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=20
> 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

fonts.dir is probably generated by mkfontscale/mkfontdir.

> $ 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'

Note, -fn (XLFD) doesn't support anti-aliasing and subpixel rendering.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1UI02z-000LQP-T7>