Date: Sat, 26 Aug 2000 11:22:26 +0200 (CEST) From: Jimmy Olgeni <olgeni@uli.it> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/20858: libvgl does not handle fonts wider than 8 pixels Message-ID: <Pine.BSF.4.21.0008261111170.2149-100000@olgeni.localdomain.net>
next in thread | raw e-mail | index | archive | help
>Number: 20858
>Category: bin
>Synopsis: libvgl does not handle fonts wider than 8 pixels
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Aug 26 02:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008261111170.2149-100000>
