From olgeni@uli.it  Sat Aug 26 02:22:26 2000
Return-Path: <olgeni@uli.it>
Received: from vega.uli.it (vega.uli.it [62.212.0.2])
	by hub.freebsd.org (Postfix) with ESMTP id 3B35037B422
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Aug 2000 02:22:25 -0700 (PDT)
Received: from olgeni.uli.it (olgeni.uli.it [62.212.0.22])
	by vega.uli.it (Postfix) with ESMTP id 2043B3B00F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Aug 2000 11:22:13 +0200 (CEST)
Message-Id: <Pine.BSF.4.21.0008261111170.2149-100000@olgeni.localdomain.net>
Date: Sat, 26 Aug 2000 11:22:26 +0200 (CEST)
From: Jimmy Olgeni <olgeni@uli.it>
To: FreeBSD-gnats-submit@freebsd.org
Subject: libvgl does not handle fonts wider than 8 pixels

>Number:         20858
>Category:       bin
>Synopsis:       libvgl does not handle fonts wider than 8 pixels
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 26 02:30:01 PDT 2000
>Closed-Date:    Wed May 30 00:52:30 PDT 2001
>Last-Modified:  Wed May 30 00:56:35 PDT 2001
>Originator:     Jimmy Olgeni
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Colby
>Environment:

Current libvgl implementation (4.1-STABLE)

>Description:

The current version of libvgl in 4.1-STABLE does not draw fonts wider than
8 pixels correctly. The code in VGLBitmapPutChar performs some bit
operations that work only with fonts up to 8 pixels in width.

>How-To-Repeat:

This code should draw a full bar near the top left corner of the screen,
but it only draws a pattern. Only the right halves of each character get
drawn, due to the bit handling in VGLBitmapPutChar.

#include <machine/console.h>
#include <vgl.h>

int main (int argc, char *argv[])
{
  VGLInit (SW_CG640x480);
  VGLTextSetFontFile ("blocks.vgl");
  VGLBitmapString (VGLDisplay, 64, 64, "TEST STRING", 
                   7, 0, 1, VGL_DIR_RIGHT);
  sleep (5);
  VGLEnd ();
}

The blocks.vgl is 8194 bytes long, and is made up like this:

0000000 1010 ffff ffff ffff ffff ffff ffff ffff
0000010 ffff ffff ffff ffff ffff ffff ffff ffff
*
0002000

>Fix:



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Aug 28 03:02:10 PDT 2000 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20858 
State-Changed-From-To: open->suspended 
State-Changed-By: sos 
State-Changed-When: Tue Nov 14 01:39:38 PST 2000 
State-Changed-Why:  
The code was not mean to work with charset more than 8 bit wide. 
I may look into this eventually, a new libvgl project is on 
the horizon. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20858 
State-Changed-From-To: suspended->closed 
State-Changed-By: sos 
State-Changed-When: Wed May 30 00:52:30 PDT 2001 
State-Changed-Why:  
If interrest arises again I'll look at it, for now this 
is simply not supported. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20858 
>Unformatted:
