From: Hartmut Schirmer Newsgroups: comp.os.msdos.djgpp Subject: Re: Need help with GRX2.2 Fonts Date: Tue, 07 Oct 1997 08:46:40 +0200 Organization: Technische Fakultaet, University of Kiel, Germany Lines: 27 Message-ID: <3439DAD0.F9B@techfak.uni-kiel.de> References: <343729A1 DOT 4CAE AT utoronto DOT ca> NNTP-Posting-Host: zora.techfak.uni-kiel.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Dan wrote: > > Hello, > > I haven't been able to figure out how to use GrDrawChar(chr, x, y, > GrTextOption *opt). GrTextXY is fairly straight forward, but I'm not > quite sure how to initialize the GrTextOption *opt. Could someone > help me out? The following should set up a somewhat standard text style: txo_font = GrLoadFont("...") or GrDefaultFont; txo_fgcolor,v = GrWhite(); txo_bgcolor.v = GrBlack(); txo_chrtype = GR_BYTE_TEXT; txo_direct = GR_TEXT_RIGHT; txo_xalign = GR_ALIGN_LEFT; txo_yalign = GR_ALIGN_BOTTOM; See grx20.h (section FONTS AND TEXT PROMITIVES) for other settings. Hartmut -- Hartmut Schirmer | Phone: +49-431-77572-709 FAX:-703 Automatisierungs- & Regelungstech. | hsc AT techfak DOT uni-kiel DOT de Technische Fakult"at, | http://www.techfak.uni-kiel.de/~hsc Kaiserstr. 2, 24143 Kiel, Germany | PGP key via WWW, Key ID:6D84AEC1