From owner-freebsd-questions@FreeBSD.ORG Sun May 23 18:05:07 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68ABE1065672 for ; Sun, 23 May 2010 18:05:07 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3BC438FC16 for ; Sun, 23 May 2010 18:05:06 +0000 (UTC) Received: by iwn5 with SMTP id 5so3131906iwn.13 for ; Sun, 23 May 2010 11:05:06 -0700 (PDT) Received: by 10.231.195.16 with SMTP id ea16mr3491900ibb.64.1274637906412; Sun, 23 May 2010 11:05:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.148.136 with HTTP; Sun, 23 May 2010 11:04:46 -0700 (PDT) In-Reply-To: <201005231856.26490.tijl@coosemans.org> References: <201005231856.26490.tijl@coosemans.org> From: Eitan Adler Date: Sun, 23 May 2010 21:04:46 +0300 Message-ID: To: Tijl Coosemans Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: using TTF fonts in X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2010 18:05:07 -0000 On Sun, May 23, 2010 at 7:56 PM, Tijl Coosemans wrote: > On Sunday 23 May 2010 18:46:38 Eitan Adler wrote: >> I have a folder with a bunch of TTF fonts. >> when I run mkfontdir the fonts.dir file is just a "0" >> and when I run xset +fp . I get >> % xset +fp . >> xset: =C2=A0bad font path element (#23), possible causes are: >> =C2=A0 =C2=A0 Directory does not exist or has wrong permissions >> =C2=A0 =C2=A0 Directory missing fonts.dir >> =C2=A0 =C2=A0 Incorrect font server address or syntax >> % cat fonts.dir >> 0 >> % ls -laod . fonts.dir >> drwxr-xr-x =C2=A02 eitan =C2=A0eitan =C2=A0- 14336 May 23 18:54:55 2010 = ./ >> -rw-r--r-- =C2=A01 eitan =C2=A0eitan =C2=A0- =C2=A0 =C2=A0 2 May 23 18:5= 5:32 2010 fonts.dir > > For TTF fonts you have to create a fonts.scale file first. Check the mkfo= ntdir(1) and mkfontscale(1) manpages. > Thanks for that. In order to complete the xset +fp I needed to use the absolute dir name as well. The issue has been solved - thanks. --=20 Eitan Adler `