nanogui: Font-drawing speed
Subject:
Re: [nanogui] Font-drawing speed
From:
Klaus ####@####.####
Date:
28 Jan 2003 16:24:30 -0000
Message-Id: <3E36AC92.8050700@gmx.de>
Jordan Crouse wrote:
>I believe that this is the only place where we have to worry about
>endianism, but since I don't have any place to test this, don't take my
>word for it (please!). I have tested on x86, and it seems to
>compile and run correctly.
>
>
Thank you for the patch! It compiles, but it does not the whole trick.
Nevertheless - it helps me to make things going.
In pcf_createfont() the FREAD function reads a couple of bytes, which
are interpreted as int or long. At this point the endianess gets important.
I wrote a patch which swaps the bytes just behind the FREAD calls (for
big-endian machines). Now, I'm able to read pcf fonts on a big-endian
system (it still works on littlle-endians too)!
I tested it without compression, but I think this makes no difference
for endianess, do you agree?
I'm looking for larger pcf-fonts (I only have a 24 point font). Where
can I get larger pcf fonts?
@ Greg: Are you interested in this patch? Shall I send it to you
(private or mailingl-list?)?
Thank you all for helping me.
Regards
Klaus