🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98810

Fix for xvetool font widths (emacstool.c)

#98810
From: Jeff Peck
Date: Mon, 04 Mar 1991 19:57
18 lines
1383 bytes
This code replaces the previous, erroneous hack at line 392 of emacstool.c
This will provide correct font with for fonts supplied with -Wt <font> 

I also have a version of emacstool/xvetool that uses termsw and allows
follow-mouse for keyboard focus. [The bug in ttysw that currently prevents 
this will be fixed in a coming release of OW.]

    if (bold_name) {
	(void)xv_set(tty_win, TTY_BOLDSTYLE_NAME, bold_name, 0);
    }

    {
	Xv_font font;			/* temporary font variable */
	font = (Xv_font)xv_get (frame, XV_FONT);
	font_height = (int)xv_get (font, FONT_DEFAULT_CHAR_HEIGHT);
	font_width  = (int)xv_get (font, FONT_DEFAULT_CHAR_WIDTH);
    }
    if (console_fd) fprintf(console, "Width = %d\n", font_width);
Technical Details
Message-ID: <9103041957.AA06876@denali.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!stanford.edu!bu.edu!xylogics!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,95b14c488f12ce7,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-03-04 11:57:51 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!stanford.edu!bu.edu!xylogics!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: peck@eng.sun.com (Jeff Peck)
Newsgroups: gnu.emacs.bug
Subject: Fix for xvetool font widths (emacstool.c)
Message-ID: <9103041957.AA06876@denali.Eng.Sun.COM>
Date: 4 Mar 91 19:57:51 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 18
Approved: bug-gnu-emacs@prep.ai.mit.edu