[707] in Zephyr_Bugs
zwgc formatting things too wide
daemon@ATHENA.MIT.EDU (Greg Stark)
Sat Sep 16 01:21:03 1995
Date: Sat, 16 Sep 1995 01:20:59 -0400
From: Greg Stark <gsstark@MIT.EDU>
To: zephyr-bugs@MIT.EDU, ghudson@MIT.EDU
I bult a version of zwgc with lots of debugging output turned on and it became
apparent that it was considering text in @font() when calculating the maximum
width.
l: <-*-lucida-medium-r-*-*-10-*-*-*-*-*-*-*>
l: <-*-lucida-bold-r-*-*-10-*-*-*-*-*-*-*>
l: <WG_CTL_CLASS>
c: <WG_CTL_USER<<<>>>>
r: <*.WG_STARTUP>
: <>
l: <sender: >
l: <-*-lucida-bold-r-*-*-10-*-*-*-*-*-*-*>
l: <ZWGC>
l: < >
r: <@>
r: <-*-lucida-bold-r-*-*-10-*-*-*-*-*-*-*>
r: <0.0.0.0>
: <>
l: <time: 01:13:25 >
r: <Authenticated>
: <>
c: <-*-lucida-bold-r-*-*-10-*-*-*-*-*-*-*>
c: <Zwgc mark II version 1.0 now running...>
: <>
l: <-*-lucida-medium-r-*-*-10-*-*-*-*-*-*-*>
width: 88 17 12 = 195
width: 50 0 45 = 96
width: 15 0 13 = 29
width: 0 76 0 = 76
width: 39 0 0 = 39
max width = 195
and the relevant bit of code from calc_max_line_width (tty_filter.c:383):
for (; info; info=info->next) {
switch (info->alignment) {
case 'l':
left += info->len;
break;
I thought this used to work, but maybe it never did, the CVS log seems to
indicate that this source hasn't changed recently.
greg