From eserte@cottrell.dialup.fu-berlin.de  Fri Aug 29 07:15:19 1997
Received: from cottrell.dialup.fu-berlin.de (cottrell.dialup.fu-berlin.de [160.45.222.107])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA05924
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Aug 1997 07:14:59 -0700 (PDT)
Received: (from eserte@localhost)
	by cottrell.dialup.fu-berlin.de (8.8.5/8.8.5) id KAA00721;
	Fri, 29 Aug 1997 10:22:32 +0200 (CEST)
Message-Id: <199708290822.KAA00721@cottrell.dialup.fu-berlin.de>
Date: Fri, 29 Aug 1997 10:22:32 +0200 (CEST)
From: Slaven Rezic <eserte@cs.tu-berlin.de>
Reply-To: eserte@cs.tu-berlin.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: syscons: problem with font
X-Send-Pr-Version: 3.2

>Number:         4416
>Category:       kern
>Synopsis:       syscons: problem with font
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 29 07:20:00 PDT 1997
>Closed-Date:    Sun Apr 12 04:52:35 PDT 1998
>Last-Modified:  Sun Apr 12 04:52:52 PDT 1998
>Originator:     Slaven Rezic
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Private FreeBSD site, Berlin, Germany
>Environment:

	

>Description:

	I created a new font and found, that the characters from 0xc0
	to 0xdf are not shown correctly: if the right-most bit is set,
	this pixel appears to be twice as wide.

>How-To-Repeat:

	Here is the source of the sample font. Load this font in a
	syscons console and print all characters to the screen.
======================================================================
begin 660 clR8x16
M``````````````````````````@4(G<4%!04'``````````<%!04%'<B%`@`
M``````````@,>D%Z#`@````````````(&"]!+Q@(``````````"E9N<8&.=F
MI0``````````^(B(B/D%`P\``````````.?#I1@8I</G````````?P]G5V!3
M9`)Q=G!_`````'\'5U=P5U(">GIX?P````!_'U]?4$=T!G1U<7\`````?P=7
M5U`G(@IZ>GA_`````'\'=T=@1U06='5Q?P````!_!S='0$8U!G5U<'\`````
M````````````````````````````````````````````/$)"`$)"/```````
M``````("`@`"`@(````````````\`@(\0$`\````````````/`("/`("/```
M`````````$)"0CP"`@(````````````\0$`\`@(\````````````/$!`/$)"
M/````````````#P"`@`"`@(````````````\0D(\0D(\````````````/$)"
M/`("/````````````````#X!`7]!03X``````'\'=T=P0W0$='-X?P``````
M````````````````````````````````````````````````````````````
M```````````````````````````````````````````````("`@("`@(``@(
M````````%!04%````````````````"0D)'XD)"1^)"0D``````@<*B@H&`P*
M"BH<"````````"!04B0($B4%`@`````````\0$`@,$E&1CD````````,#`@0
M```````````````$"`@0$!`0$!`0"`@$````$`@(!`0$!`0$!`@($```````
M``@(:QP(%"(````````````("`A_"`@(````````````````````&!@0(```
M`````````'\````````````````````````8&````````@($!`@($!`@($!`
M```````\0D)"0D)"0D(\````````"!@("`@("`@("````````#Q"`@($"!`@
M0'X````````\0@("'`("`D(\````````#`P4%"0D1'X$#@```````'Y`0$!\
M`@("0CP````````<($!`?$)"0D(\````````?D("!`0("!`0$````````#Q"
M0D(\0D)"0CP````````\0D)"0CX"`@0X````````````&!@````8&```````
M`````!@8````&!@0(`````````,,,,`P#`,``````````````'\``'\`````
M````````P#`,`PPPP``````````^00$"!`@(``@(```````````<(DE554H@
M'@`````````("!P4%#XB(F,`````````?D%!07Y!04%^`````````!XA0$!`
M0$`A'@````````!\0D%!04%!0GP`````````?T!`0'Q`0$!_`````````']`
M0$!\0$!`0``````````>(4!`0$=!(1\`````````04%!07]!04%!````````
M`#X("`@("`@(/@`````````.`@("`@)"0CP`````````0D1(4&!02$1"````
M`````$!`0$!`0$!`?@````````!!06-C555)24$`````````04%A44E%0T%!
M`````````!PB04%!04$B'`````````!^04%!?D!`0$``````````'")!04%!
M02(<*08``````'Y!04%^2$1"00`````````^04!`/@$!03X`````````?P@(
M"`@("`@(`````````$%!04%!04%!/@````````!!04$B(A04"`@`````````
M04%)25558V-!`````````$%!(A0(%")!00````````!!02(4"`@("`@`````
M````?P$"!`@0($!_```````<$!`0$!`0$!`0$!`<````0$`@(!`0"`@$!`("
M`````!P$!`0$!`0$!`0$!!P````(%")!````````````````````````````
M````_P`````8&`@$````````````````````/T%!04%#/0```````$!`0'Y!
M04%!07X````````````^0$!`0$`^`````````0$!/T%!04%!/P``````````
M`#Y!07]`0#X````````/$!`\$!`0$!`0````````````/T%!04%!/P$!/@``
M`$!`0'Y!04%!04$````````("`!X"`@("`A^`````````@(`'@("`@("`@("
M/````$!`0$)$2'!(1$(````````X"`@("`@("`@^````````````=DE)24E!
M00```````````%YA04%!04$````````````^04%!04$^````````````?D%!
M04%!?D!`0````````#]!04%!03\!`0$```````!>8$!`0$!`````````````
M/D!`/`("?````````!`0$'X0$!`0$`X```````````!!04%!04,]````````
M````8R(B%!0("````````````$%!24E)238```````````!!(A0(%")!````
M````````04%!04%!/P$!/@```````'\"!`@0('\```````0("`@("!`("`@(
M"`0````("`@("`@("`@("`@(````$`@("`@(!`@("`@($``````Q248`````
M```````````````("!04(B)!?P``````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````"`@`"`@("`@("```````"`@^2$A(2$@^"`@`````
M`#Q"0"#X("`A?@``````````@%TB(B)=@```````````04$B%`@^"`@(````
M```("`@("`````@("`@(````'")!0#Q"02$>`4$B'````"(B````````````
M`````````!XA3%)04DPA'@`````````Z1D)"/@!^`````````````!(D2)!(
M)!(```````````````!_`0$`````````````````?@``````````````'B%<
M4EQ44B$>````````/@``````````````````'"(B(AP````````````````(
M"`A_"`@(`'\````````X1`0($"!\````````````.$0$&`1$.```````````
M``0($```````````````````````04%!04%"?$"`@````````'_BXN)B(B(B
M(B(`````````"!P(````````````````````````&`0X````"!@("`@("```
M````````````/$)"0CP`?@````````````"02"02)$B0````````0,!`0$!,
M,,@8*"A\"!P``$#`0$!`3##`.$0$&"!\``!PB!`(B',,,D8*"A\"!P``````
M"`@`"`@0($!!/@``$`@$"`@<%!0^(B)C``````0($`@('!04/B(B8P`````(
M%"(("!P4%#XB(F,`````.4X`"`@<%!0^(B)C```````B``@('!04/B(B8P``
M```<(AP("!P4%#XB(F,`````````#QP4)"=\1$3'`````````!XA0$!`0$`A
M'@08```0"`!_0$!`?$!`0'\`````!`@`?T!`0'Q`0$!_``````@4`']`0$!\
M0$!`?P``````(@!_0$!`?$!`0'\`````$`@`/@@("`@("`@^``````0(`#X(
M"`@("`@(/@`````(%``^"`@("`@("#X``````"(`/@@("`@("`@^````````
M`'Q"04'Q04%"?``````Y3@!!06%1245#04$`````$`@`'")!04%!02(<````
M``0(`!PB04%!04$B'``````Y3@`<(D%!04%!(AP`````.4X`'")!04%!02(<
M``````@4`!PB04%!04$B'`````````!!(A0(%")!````````````'"-#14E1
M86*<`````!`(!$%!04%!04%!/@`````$"!!!04%!04%!03X`````"!0`04%!
M04%!04$^```````B`$%!04%!04%!/@`````"!`A!02(4"`@("`@`````````
M0$!^04%!?D!`````````/D%!04Y!04%!7D!`````$`@$`#]!04%!0ST`````
M``0($``_04%!04,]```````(%"(`/T%!04%#/0``````.4X``#]!04%!0ST`
M`````"(B```_04%!04,]```````<(AP`/T%!04%#/0```````````'^(B(^(
MB'\````````````^0$!`0$`^!!@````0"`0`/D%!?T!`/@``````!`@0`#Y!
M07]`0#X```````@4(@`^04%_0$`^```````B(@``/D%!?T!`/@``````(!`(
M`'@("`@("'X```````0($`!X"`@("`A^```````0*$0`>`@("`@(?@``````
M1$0``'@("`@("'X````````4"!0"/D%!04$_```````Y3@``7F%!04%!00``
M````!`@0`#Y!04%!03X``````!`(!``^04%!04$^```````(%"(`/D%!04%!
M/@``````.4X``#Y!04%!03X``````"(B```^04%!04$^```````````("`!_
M``@(`````````````#]#14E187Z``````!`(!`!!04%!04,]```````$"!``
M04%!04%#/0``````"!0B`$%!04%!0ST``````"(B``!!04%!04,]```````$
M"!``04%!04%!/P$!/@``````0$!^04%!07Y`0$```"(B``!!04%!04$_`0$^
!`!``
`
end
======================================================================

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To: eserte@cs.tu-berlin.de
Cc: FreeBSD-gnats-submit@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject: Re: kern/4416: syscons: problem with font 
Date: Tue, 02 Sep 1997 20:30:37 +0900

 >>Number:         4416
 >>Category:       kern
 >>Synopsis:       syscons: problem with font
 >>Confidential:   no
 >>Severity:       serious
 >>Priority:       medium
 >>Responsible:    freebsd-bugs
 >>State:          open
 >>Class:          sw-bug
 >>Submitter-Id:   current-users
 >>Arrival-Date:   Fri Aug 29 07:20:00 PDT 1997
 >>Last-Modified:
 >>Originator:     Slaven Rezic
 >>Organization:
 >Private FreeBSD site, Berlin, Germany
 >>Release:        FreeBSD 2.2.1-RELEASE i386
 >>Environment:
 >
 >>Description:
 >
 >	I created a new font and found, that the characters from 0xc0
 >	to 0xdf are not shown correctly: if the right-most bit is set,
 >	this pixel appears to be twice as wide.
 
 This is not a bug in syscons.  Rather it's a strange feature of
 MDA/EGA/VGA graphics card.  Character fonts for these cards are 8-bit
 wide, but are displayed in 9-bit wide cells on the screen, so that
 adjacent characters are comfortably(?) separated by one dot.  This
 would be good for alphanumeric letters.
 
 Character codes between 0xc0 and 0xdf are "graphics" characters
 (lines) in the US character sets (CP437) and many other sets.  This
 extra spacing will be rather annoying for these characters because
 adjacent line characters won't be connected if one dot space is
 inserted.  The MDA/EGA/VGA cards do not put space for these characters
 but replicate the LSB so that the lines are connected.  Strange
 feature, isn't it?
 
 You had better not to use the right-most bits for these character
 codes.  (The fonts in /usr/share/syscons/fonts don't, AFAIK.)
 
 Kazu
State-Changed-From-To: open->analyzed 
State-Changed-By: wosch 
State-Changed-When: Sun Sep 14 05:53:15 PDT 1997 
State-Changed-Why:  
This is not a bug in syscons.  Rather it's a strange feature of 
MDA/EGA/VGA graphics card.  

State-Changed-From-To: analyzed->closed 
State-Changed-By: phk 
State-Changed-When: Sun Apr 12 04:52:35 PDT 1998 
State-Changed-Why:  
hardware works that way, we can't do anything about it. 
>Unformatted:
