From owner-freebsd-bugs Sat Aug 26 2:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B7FB537B440 for ; Sat, 26 Aug 2000 02:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA88437; Sat, 26 Aug 2000 02:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from vega.uli.it (vega.uli.it [62.212.0.2]) by hub.freebsd.org (Postfix) with ESMTP id 3B35037B422 for ; 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 ; Sat, 26 Aug 2000 11:22:13 +0200 (CEST) Message-Id: Date: Sat, 26 Aug 2000 11:22:26 +0200 (CEST) From: Jimmy Olgeni To: FreeBSD-gnats-submit@freebsd.org Subject: bin/20858: libvgl does not handle fonts wider than 8 pixels Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 #include 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