From owner-freebsd-hackers Wed Oct 2 03:04:08 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA25762 for hackers-outgoing; Wed, 2 Oct 1996 03:04:08 -0700 (PDT) Received: from rf900.physics.usyd.edu.au (rf900.physics.usyd.edu.au [129.78.129.109]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA25726 for ; Wed, 2 Oct 1996 03:04:03 -0700 (PDT) Received: (from dawes@localhost) by rf900.physics.usyd.edu.au (8.6.11/8.6.9) id UAA07391; Wed, 2 Oct 1996 20:03:47 +1000 From: David Dawes Message-Id: <199610021003.UAA07391@rf900.physics.usyd.edu.au> Subject: Re: XDrawString To: jmacd@CS.Berkeley.EDU (Josh MacDonald) Date: Wed, 2 Oct 1996 20:03:47 +1000 (EST) Cc: jkh@time.cdrom.com, freebsd-hackers@FreeBSD.org In-Reply-To: <199610020429.VAA02072@paris.CS.Berkeley.EDU> from "Josh MacDonald" at Oct 1, 96 09:29:36 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >> > text. I run Xaccell, so then I tried the same application with an >> > XFree86 server, and the string does not draw at all. On either the >> > DEC Ultrix server or Linux Xaccell server I ran it on both displayed >> > the string without wrapping. So I'm curious whats going on. Here's >> >> As it does on the FreeBSD version of AcceleratedX (1.3) I just tested >> it with. Can't test it against XFree86 as I have a Matrox. > >Wait, you're saying that you're running the same server as I am. Did >you not experience any troubles? (I have AcceleratedX 1.3). You haven't given much detail of what you're trying it on (hardware, server, depth, etc). I just tried it on an XFree86 3.1.2 Mach32 at 8bpp, and I don't see anything. If I change the foreground and background colours in the gc to: xgcv.foreground = WhitePixel(display, DefaultScreen (display)); xgcv.background = BlackPixel(display, DefaultScreen (display)); Then, it works fine. XDrawString only draws in the forground colour anyway, so maybe you were drawing black on black, which could easily be the case with the foreground pixel value set to 0xffff (truncated to 0xff) on a 8bpp pseudocolor visual? Have you tried XDrawImageString? That gives black characters on a white background with your foreground/background values when I try it. David