🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #88050

Faces and fonts considered non-perspicuous! (Possible bug.)

#88050
From: k p c
Date: Fri, 05 Aug 1994 21:25
86 lines
4852 bytes
(Please forgive the repost from g.e.h.  I had no answers there, and
I'm willing to opine that this is best thought of as a bug, given the
likelihood of errors for such common practices.)

Is it possible to use a bold font by default in 19.24 without errors?

I find fonts and faces in emacs to be non-perpicuous, at least for
doing the following IMHO simple task.  Any comments?

What I want to do is:

	o tell emacs, via .emacs (not .Xdefaults), to use my favorite
	  fixed-width font by default
	o use that font for all ordinary, single-font buffers
	o have emacs do something useful with that font when it runs
	  info or w3, or at least just pretend that it has no variants
	  and use it as-is for all faces, without calling error

18.58 can do this.  19.24 apparently can't.

My favorite font is known to most people as 9x15bold.  But since it is
not hyphenated, it is not PC, so I have tried the following fonts
instead.  You should know that I prefer the bold version of the font
for ordinary text (default face), and I am not particular about how
boldface should look: it should either look just like the default face
or, ideally, be the medium variant.

(defvar kpc-default-font "-adobe-courier-bold-r-normal--*-140-*-*-m-*-*-1")
(defvar kpc-special-font "-adobe-courier-medium-r-normal--*-140-*-*-m-*-*-1")
(defvar kpc-alt-default-font "-misc-fixed-bold-r-normal--15-140-*-*-c-*-*-1")
(defvar kpc-alt-special-font "-misc-fixed-medium-r-normal--15-140-*-*-c-*-*-1")

I have used these functions in various combinations with the above
fonts, and 19.24 calls error consistently:

	o (set-default-font font)
	o (focus-frame c)
	o (modify-frame-parameters c (list (cons 'font font)
				      (cons 'height h)
				      (cons 'width w)))
	o (set-face-font 'default font c)
	o (setf initial-frame-alist
	        (list (cons 'font kpc-default-font)
		      '(width . 80)
		      '(height . 57)))
	o (setf default-frame-alist initial-frame-alist)

I witness the following errors:

	o "Font `9x15' not found for face `default'" (C-x 5 f).  This
	  error occurred even though I do not have 9x15 anywhere in
	  .emacs or .Xdefaults and even though I restarted X.  When
	  this error does not occur, a smaller, useless font appears.
	  I think it's 6x13 or whatever the default emacs font is.
	o "No fonts matching pattern are the same size as `info-node'"
	  (M-x info).
	o "No fonts matching pattern are the same size as `default'"
	  (set-face-font 'default kpc-default-font)

I have not been able to get rid of all of the errors and still be able
to use my favorite font.  I will be grateful for any help.  Perhaps
there is a combination I missed or a crucial piece of font/face
knowledge.

Ideally I would use 9x15bold all the time, and modes that require bold
face, such as font-lock, info, or w3, would use ordinary 9x15 for the
bold face (i.e. bold and medium are swapped).  At worst, emacs would
just use 9x15bold for both default face and bold face (and, ideally,
w3 would revert to [] notation) so that all the text looks the same.
Whatever works must work on a monochrome monitor and ideally also work
in different colorings of 9x15bold.

In any case, I am not certain that calling error is appropriate, even
for somebody who tries to use "9x15".  Also, info says that emacs
comes up in 9x15 by default.  In my experience, 19.24 does not come up
in 9x15 by default.

GNU Emacs 19.24.1 of Fri May 27 1994 on xxx (sparc-sun-sunos4.1)

Please reply by email if you can.

--
kpc@ptolemy.arc.nasa.gov.  AI, multidisciplinary neuroethology, info filtering.
The FDA attacks tryptophan, melatonin, etc. to increase their and MDs' monopoly
on permission to buy medicine.  This is power; power corrupts.  Wrong is wrong.
1speech 2arms 3quarter 4search 5process 6jury 7jury 8excessive 9people 10people
Technical Details
Message-ID: <1994Aug5.025312.9212@ptolemy-ethernet.arc.nasa.gov>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!sun.cais.com!io.org!uunet.ca!uunet.ca!scipio.cyberstore.ca!vanbc.wimsey.com!deep.rsoft.bc.ca!agate!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ptolemy-ethernet.arc.nasa.gov!kpc

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,d0606d05a399ea0a,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-06 18:41:30 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!sun.cais.com!io.org!uunet.ca!uunet.ca!scipio.cyberstore.ca!vanbc.wimsey.com!deep.rsoft.bc.ca!agate!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ptolemy-ethernet.arc.nasa.gov!kpc
From: kpc@ptolemy-ethernet.arc.nasa.gov (k p c)
Newsgroups: gnu.emacs.bug
Subject: Faces and fonts considered non-perspicuous!  (Possible bug.)
Date: 5 Aug 1994 17:25:22 -0400
Organization: NASA Ames Research Ctr., AI Research and Aero. Facil. Branches.
 Disclaimer: neither a civil servant nor a representative.
Lines: 87
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <1994Aug5.025312.9212@ptolemy-ethernet.arc.nasa.gov>
Reply-To: kpc@ptolemy-ethernet.arc.nasa.gov