From owner-freebsd-x11@FreeBSD.ORG Mon Jun 13 17:10:17 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E492916A41C for ; Mon, 13 Jun 2005 17:10:17 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from mail.ijs.si (mail.ijs.si [193.2.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80F6743D1D for ; Mon, 13 Jun 2005 17:10:17 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from localhost (mail.ijs.si [193.2.4.66]) by patsy.ijs.si (Postfix) with ESMTP id 45D0217B81A; Mon, 13 Jun 2005 19:10:16 +0200 (CEST) Received: from patsy.ijs.si ([127.0.0.1]) by localhost (patsy.ijs.si [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23129-02-2; Mon, 13 Jun 2005 19:10:14 +0200 (CEST) Received: from idefix.ijs.si (idefix.ijs.si [193.2.4.33]) by patsy.ijs.si (Postfix) with ESMTP id 91E8317B825; Mon, 13 Jun 2005 19:10:13 +0200 (CEST) Received: from localhost.ijs.si (localhost.ijs.si [127.0.0.1]) by idefix.ijs.si (Postfix) with ESMTP id DE84D5C0A; Mon, 13 Jun 2005 19:10:12 +0200 (CEST) From: Dejan Lesjak To: Mikhail Teterin Date: Mon, 13 Jun 2005 19:10:11 +0200 User-Agent: KMail/1.8 References: <200506111506.j5BF6obi014607@aldan.algebra.com> <200506131430.30430.dejan.lesjak@ijs.si> <200506130951.44130@aldan> In-Reply-To: <200506130951.44130@aldan> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506131910.12152.dejan.lesjak@ijs.si> X-Virus-Scanned: amavisd-new at ijs.si Cc: freebsd-x11@freebsd.org Subject: Re: bug in mkfontdir? X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2005 17:10:18 -0000 On Monday 13 of June 2005 15:51, Mikhail Teterin wrote: > On Monday 13 June 2005 08:30 am, you wrote: > = > For example, the x11-fonts/gemini-fonts port creates PCF files from > = > BDF sources and then runs mkfontdir to create fonts.dir. > = > > = > With XFree86's mkfontdir the file will begin with the number 68 and > = > list the PCFs only -- as per the mkfontdir(1). > = > > = > With Xorg's, the file begins with 136 and each font ends up listed > twice: = > > = > [...] > = > gem1c.bdf -gemini-courier-medium-r-normal--8-80-75-75-m-50-koi8-u > = > gem1c.pcf.gz -gemini-courier-medium-r-normal--8-80-75-75-m-50-koi8-u > = > gem1cb.bdf -gemini-courier-bold-r-normal--8-80-75-75-m-50-koi8-u > = > gem1cb.pcf.gz -gemini-courier-bold-r-normal--8-80-75-75-m-50-koi8-u > = > [...] > = > > = > Is this something, I should only talk about with the Xorg people? > = > = Hm, does this cause any trouble with using fonts or does it only > = generate larger file? > > It is a problem. When the BDF is present it results in the inefficiency > of using it instead of the binary-tailored PCF. The worst is, however, > when the BDF is not installed at all -- font name will be listed (as in > xlsfonts), but the server will refuse to use it... > > I had gemini-fonts in front of my fontpath (for koi8-u enoding). After > switching to Xorg, most of the fonts stopped working in xterm :-( I tried to revert Imakefile and mkfontdir.c to previous version from Xorg CVS, but that fails. Grabbing mkfontdir.c from XFree86 however works. So here's what you can try: Grab http://www.ijs.si/~lesi/xorg/mkfontdir/mkfontdir.c and http://www.ijs.si/~lesi/xorg/mkfontdir/patch-programs_mkfontdir_Imakefile and put them both under xorg-clients/files directory. Then apply patch http://www.ijs.si/~lesi/xorg/mkfontdir/Makefile.diff to xorg-clients port Makefile and reinstall xorg-clients. After that try reinstalling gemini fonts. Dejan