nanogui: About pcf_readbitmaps function


Previous by date: 1 Feb 2007 05:16:23 +0000 Re: About pcf_readbitmaps function, Greg Haerr
Next by date: 1 Feb 2007 05:16:23 +0000 Re: About pcf_readbitmaps function, Caleb Harper
Previous in thread: 1 Feb 2007 05:16:23 +0000 Re: About pcf_readbitmaps function, Greg Haerr
Next in thread: 1 Feb 2007 05:16:23 +0000 Re: About pcf_readbitmaps function, Caleb Harper

Subject: Re: [nanogui] About pcf_readbitmaps function
From: "max xiayi" ####@####.####
Date: 1 Feb 2007 05:16:23 +0000
Message-Id: <afda14700701312115r6e4a6842la48025171a2dc436@mail.gmail.com>

Hi Greg,

Thanks for your important message.

I do check the byte order. It seems that my config file is set correctly.
After analyse the pcf file, i found the point.
The pcf font files I use on arm board is from my PC ,Fedora 5. The files
seems that the byte order differs between the front header part and the
latter parts. And engine/font_pcf.c fails to deal with that situation.
For example,
helvB18-ISO8859-1.pcf,
 format = readLSB32(file);   //the format is got is 00 00 00 0E
 endian = (format & PCF_BIT_MASK)? PCF_LSB_FIRST: PCF_MSB_FIRST;
 num_glyphs = readLSB32(file);
// The value should be 00 00 00 C0, however after readLSB32, i got C0 00 00
00. it is wrong.
This is the reason of  why my ARM system crashes.

Thanks
Max
2007/2/1, Greg Haerr ####@####.####
>
> : num_glyphs = readLSB32(file);
> : it seems that the num_glyphs is not read correctly.
>
> Check your endian format and make sure that the config
> file has it specified correctly.  (BIGENDIAN=Y or N)
>
> Regards,
>
> Greg
>

Previous by date: 1 Feb 2007 05:16:23 +0000 Re: About pcf_readbitmaps function, Greg Haerr
Next by date: 1 Feb 2007 05:16:23 +0000 Re: About pcf_readbitmaps function, Caleb Harper
Previous in thread: 1 Feb 2007 05:16:23 +0000 Re: About pcf_readbitmaps function, Greg Haerr
Next in thread: 1 Feb 2007 05:16:23 +0000 Re: About pcf_readbitmaps function, Caleb Harper


Powered by ezmlm-browse 0.20.