From owner-ntemacs-users@june  Mon Jan 27 14:09:25 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Mon" "27" "January" "1997" "16:27:44" "-0500" "David Biesack" "sasdjb@unx.sas.com" "<199701272127.AA11566@lambda.unx.sas.com>" "33" "misc6x13 font" "^From:" nil nil "1" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id OAA03373 for <voelker@june.cs.washington.edu>; Mon, 27 Jan 1997 14:09:24 -0800
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id OAA23790 for <voelker@joker.cs.washington.edu>; Mon, 27 Jan 1997 14:09:19 -0800
Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id NAA29102 for <ntemacs-users@cs.washington.edu>; Mon, 27 Jan 1997 13:28:00 -0800
Received: from mozart by lamb.sas.com (5.65c/SAS/Gateway/01-23-95) 	id AA25148; Mon, 27 Jan 1997 16:27:58 -0500
Received: from lambda.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) 	id AA09101; Mon, 27 Jan 1997 16:27:44 -0500
Received: by lambda.unx.sas.com (5.65c/SAS/Generic 9.01/3-26-93) 	id AA11566; Mon, 27 Jan 1997 16:27:44 -0500
Message-Id: <199701272127.AA11566@lambda.unx.sas.com>
From: David Biesack <sasdjb@unx.sas.com>
To: ntemacs-users@cs.washington.edu
Subject: misc6x13 font
Date: Mon, 27 Jan 1997 16:27:44 -0500


I really like the misc6x13 font under X and have been using it for
years. I can install this font into Windows NT from
C:\exceed\fonts\misc\6x13.fon and it works in Notepad but when I try to
select it in Emacs via

 (set-default-font (win32-select-font)))

(it shows up in the dialog) or by placing

   (font . "-*-6x13-normal-r-*-*-13-97-*-*-c-*-*-ansi-")

in both initial-frame-alist and default-frame-alist, (that string is
what the font selector returns) or

 (set-default-font "-*-6x13-normal-r-*-*-13-97-*-*-c-*-*-ansi-")

or even setting the font in the registry, NT Emacs does not accept it. I
get no error, but the font which Emacs displays appears to be the MS
LineDraw font.  The font name shows up fine in the font selector and the
sample there even looks correct, but the Emacs frame displays the wrong
font.  Do X fonts not work in Windows?

We have the eXceed X server software version 5.3.1.0 installed on our NT
machines running NT 4.0, build 1381 SP 2 running: "GNU Emacs 19.34.1
(i386-*-nt4.0) of Thu Aug 29 1996 on BANANA-FISH"

Anyone know how I can get misc6x13 to work?

-- 
David J. Biesack       david_biesack@acm.org        sasdjb@unx.sas.com
Object Programming Technology                  (919) 677-8000 ext 7771
SAS Institute Inc. SAS Campus Drive Cary, NC 27513  http://www.sas.com

From owner-ntemacs-users@trout  Tue Apr  1 16:54:41 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Tue" " 1" "April" "1997" "20:03:50" "-0500" "john yates" "yates@highway1.com" nil "58" "using X fonts" "^From:" nil nil "4" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id QAA00332 for <voelker@june.cs.washington.edu>; Tue, 1 Apr 1997 16:54:41 -0800
Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id QAA31376 for <voelker@joker.cs.washington.edu>; Tue, 1 Apr 1997 16:54:40 -0800
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id QAA14489 for <ntemacs-users@trout.cs.washington.edu>; Tue, 1 Apr 1997 16:11:29 -0800 (PST)
Received: from chmls01.highway1.com (ne.highway1.com [24.128.1.82]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with ESMTP id QAA27357 for <ntemacs-users@cs.washington.edu>; Tue, 1 Apr 1997 16:11:27 -0800
Received: from pentium133.ne.highway1.com ([24.128.33.206])           by chmls01.highway1.com (Netscape Mail Server v2.0) with SMTP           id AAA26735; Tue, 1 Apr 1997 19:11:24 -0400
Message-ID: <3341B076.38C0@highway1.com>
Reply-To: yates@highway1.com
X-Mailer: Mozilla 3.01Gold (Win95; U)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: yates@highway1.com (john yates)
To: ntemacs-users@cs.washington.edu
Subject: using X fonts
Date: Tue, 01 Apr 1997 20:03:50 -0500

Like so many of the ntemacs community I am interested in having
bold and italic versions of my basic font available under emacs.
As a starting point I thought that I ought to be able to use the
X windows raster fonts. There are a number of X servers available
for Windows and many convert the X distribution bdf raster fonts
to Windows .fon format. I downloaded a trial version of Distinct's
X server from http://www.distinct.com/download/index.htm .  While
activating the trial requires magic serial numbers that have to be
obtained from Distinct the unactivated installation already provides
all of the X fonts as .fon files.  Just what I was looking for!

I decided to concentrate on X Schumacher Clean since the 6x12 and
8x8 forms include both bold and italic versions.  An obvious problem
with the fonts is that the normal, bold and italic versions are
named

	Normal:	X Schumacher Clean #048
	Italic:	X Schumacher Clean #049
	Bold:	X Schumacher Clean #110

Using hexedit I changed these names as follows

	X Schumacher Clean #048	 ->  Schumacher Clean
	X Schumacher Clean #049  ->  Schumacher Clean Italic
	X Schumacher Clean #110  ->  Schumacher Clean Bold

Once installed I was able to get emacs to use each individually.
I did not even have to set win32-enable-italics to t.  Each font
appears to use an identically sized character cell as I saw no
increase in line space when using the italic font.

Unfortunately emacs does not seem to understand the relationship
of one font to another since when I establish Schumacher Clean as
the default font using both the -font command-line switch and
using set-default-font in my .emacs the bold and italic faces
continue to use the normal font.

What I did notice is that in the font dialog while the multiple
versions of Arial, Courier, etc are collapsed into a single font
name offering four styles my three Schumacher Clean fonts show up
as three distinct fonts.  I assume that this is because .fon files
have no PANOSE information.

Thus I am forced to conclude that if emacs is ever to use families
of X fonts it is going to have to implement some form of matching
heuristic.

Can anyone comment on how hard that would be?

[Just as an aside I should mention that the 6x12 italic font is
not the prettiest, being severely limited by the contraint of
fitting into the same character cell as normal and bold.  The
upper right corner of the glyphs is simply truncated.  Lowercase
letters are all fine but H, J, M, N, T, U, V, W, Y and to lesser
extents C, E, F, G, K, O, P, Q, R, S, X and Z all show truncated
pixels.]

/john

