www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/02/20:15:59

Date: Thu, 2 Mar 1995 19:01:49 -0500 (EST)
From: Kimberley Burchett <OKRA AT max DOT tiac DOT net>
Subject: libgrx fonts
To: DJGPP Mailing List <djgpp AT sun DOT soe DOT clarkson DOT edu>

  I've been looking over the LIBGRX stuff and I have a few questions that
aren't answered in the docs.  I'd try to build the test progs and just
answer them for myself, but none of the makefiles work for me.

1. Do LIBGRX fonts support greyscales or are they just b/w?
2. Is there any plan to make LIBGRX fonts scalable?  Does the font format 
   used support scalable fonts?
3. Could someone send me some sample code that uses LIBGRX to load a font 
   file and that returns a simple bitmap of one letter in that font?  I'd
   rather have some commented code than try to use the test progs in the
   archive.  This kind of thing just isn't enlightening to me: 

            if(bw > (2*GrSizeX())) break;
            bx = cx - bw/2;
            by = cy - bh/2;
            GrDrawString(text,len,bx+hh,by,&opt);
            opt.txo_direct  = GR_TEXT_DOWN;
            opt.txo_bgcolor.v = c2;
            GrDrawString(text,len,bx+bw-hh,by,&opt);
					- taken from fonttest.c

  If LIBGRX fonts don't support greyscales and won't support scaling, 
could someone refer me to a different library that does support these 
things?  Or even specs for a relatively simple font format that I could 
implement myself?
  Thanks for bearing with me.  I've gotten really frustrated trying to
understand LIBGRX.  The same has happened twice before to the point where
I gave up and have basically re-written most of what I would have used it
for.  I'm incredibly patient about reinventing the wheel, but trying to
understand someone else's uncommented code can drive me insane.
							Kim

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019