From owner-ntemacs-users@cs.washington.edu  Tue Sep 16 05:37:07 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Tue" "16" "September" "1997" "12:49:51" "+0100" "Andrew Innes" "andrewi@harlequin.co.uk" nil "87" "Re: changing ntemacs font size" "^From:" nil nil "9" 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 FAA22672 for <voelker@june.cs.washington.edu>; Tue, 16 Sep 1997 05:37:07 -0700
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 FAA38233 for <voelker@joker.cs.washington.edu>; Tue, 16 Sep 1997 05:37:06 -0700
Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id EAA02144 for ntemacs-users-outgoing; Tue, 16 Sep 1997 04:50:59 -0700 (PDT)
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 EAA02140 for <ntemacs-users@trout.cs.washington.edu>; Tue, 16 Sep 1997 04:50:55 -0700 (PDT)
Received: from holly.cam.harlequin.co.uk (holly.cam.harlequin.co.uk [193.128.4.58]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with ESMTP id EAA21235 for <ntemacs-users@cs.washington.edu>; Tue, 16 Sep 1997 04:50:50 -0700
Received: from propos.long.harlequin.co.uk (propos.long.harlequin.co.uk [193.128.93.50])           by holly.cam.harlequin.co.uk (8.8.4/8.8.4) with ESMTP 	  id MAA26467; Tue, 16 Sep 1997 12:50:28 +0100 (BST)
Received: from woozle.long.harlequin.co.uk (woozle.long.harlequin.co.uk [193.128.93.77]) by propos.long.harlequin.co.uk (8.8.4/8.6.12) with SMTP id MAA18749; Tue, 16 Sep 1997 12:49:51 +0100 (BST)
Message-Id: <199709161149.MAA18749@propos.long.harlequin.co.uk>
In-reply-to: <81B329C63AEFD0119929006097AB82E4042284@priory.rnib.org.uk> 	(DPawson@rnib.org.uk)
Precedence: bulk
From: Andrew Innes <andrewi@harlequin.co.uk>
Sender: owner-ntemacs-users@cs.washington.edu
To: DPawson@rnib.org.uk
CC: khamsi@kmrmail.kmr.ll.mit.edu, DPawson@rnib.org.uk,         ntemacs-users@cs.washington.edu
Subject: Re: changing ntemacs font size
Date: Tue, 16 Sep 1997 12:49:51 +0100 (BST)

On Tue, 16 Sep 1997 09:33:57 +0100, "Pawson, David" <DPawson@rnib.org.uk> said:
>Sarir replied
> Is there a simple explanation of what
>>(set-default-font "-*-Courier-bold-r-*-*-13-97-*-*-c-*-*-ansi-")
>>means, when taken to bits?
> -a-b-c-d-e--f-g-h-i-j-k-l-
>
>the letter stand for
>
>a = foundry
>b = font family
>c = weight
>d = slant
>e = set width
>f = pixels
>g = points in tenths of a point
>h = horiz resolution in dpi
>i = vertical resolution in dpi
>j = spacing
>k = average width in tenths of a pixel
>l = character set
>Hope this is what you asked for. If not...never mind. :-)
>
>Exactly what I wanted - but not being an X user....
>
>Could I ask for a little more please
>Like 
>What are the valid options for
>c  [Something like bold, light, normal?] - or is it coded?

This is what NT-Emacs understands:

thin, extralight, light, normal, medium, semibold, demibold, bold,
extrabold, heavy

>d  [upright, italic..]

i for italic and anything else (usually r) for roman.

>e  ??? What is width - of each character [what format, in pixels?]

Not sure.  Ignored by NT-Emacs.

>f  A number? For char height? 

Nominal font height in pixels.  (Eg. 13 pixels roughly corresponds to 10
points (a point is 1/72 of an inch) on a 96dpi monitor, so the font spec
above is selecting a 10 point bold Courier font.)

>g  [Am I right in suggesting that 10 point would be 100 etc?

Yes.

>h,i  Resolution of this screen? e.g. 1024 768?

No, I think these numbers represent the "design resolution" of the font
- on X, fonts are typically designed for 75dpi or 100dpi screens (under
Windows, most monitors are assumed to be 96dpi I believe).  NT-Emacs
ignores these values.

>j  Spacing of what? line spacing in points?

Confusion of terminology - spacing as in mono-spaced or proportionally
spaced.  Values are "c" (constant) or "m" (monospace) to mean
fixed-width or "p" for proportionally spaced.  (You can tell Emacs to
use proportional fonts, but the display will become garbled as you move
the cursor around.)

>l  Where do I find the viable character sets, can I use one of the
>standard ISO sets?

NT-Emacs understands:

ansi, oem, symbol to refer to the standard Windows character sets (the
first two, at least, are locale dependant).  "iso8859" and "iso8859-1"
are accepted as synonyms for ansi (which isn't really right, because I
didn't understand the iso8859-n notation when I wrote the code).

Recently, I've extended 19.34.5 to allow "#nnn" as well (where nnn is a
Windows charset number).  This allows you to select a font using a
different charset from ansi - for instance, Lucida Console on Windows 95
and NT4.0 supports Greek, Turkish, Central European, and Cyrillic as
well as Western for the value of charset (Western is mapped to ansi in
English and Western European locales, while the others are mapped to the
appropriate #nnn value).

AndrewI

