nanogui: About pcf_readbitmaps function


Previous by date: 2 Feb 2007 04:03:00 +0000 TSLIB, roberto\.bielli\.inwind\.it
Next by date: 2 Feb 2007 04:03:00 +0000 Re: a question about Tcl ,Tk ,N xlib and Nano- X, lpgdgs.126.com
Previous in thread: 2 Feb 2007 04:03:00 +0000 Re: About pcf_readbitmaps function, Caleb Harper
Next in thread: 2 Feb 2007 04:03:00 +0000 Re: About pcf_readbitmaps function, Roberto

Subject: Re: [nanogui] About pcf_readbitmaps function
From: "max xiayi" ####@####.####
Date: 2 Feb 2007 04:03:00 +0000
Message-Id: <afda14700702012002r364ee2fdgfee1e82571e2efcb@mail.gmail.com>

Hi , dear Nano-X' guys,
I read the X11's pcfread file, and i made some effort in doing some patch on
engine/font_pcf.c, however, I am suffering from failure until this moment.
Anybody can give me some hint or knowledge?

Thanks
Regards


2007/2/1, Caleb Harper ####@####.####
>
> Hi,
>
> I'm new to nano-X, and I've also noticed that the .pcf files from my FC
> install cause nano-X to crash.  I've only had success with the .pcf files
> packaged with nano-X.  Do I need a special tool to generate valid .pcf
> files
> (I've tried bdftopcf) or is there somewhere I can download them?
>
> Thanks,
> Caleb Harper
>
> On 2/1/07, max xiayi ####@####.#### wrote:
> >
> > 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: 2 Feb 2007 04:03:00 +0000 TSLIB, roberto\.bielli\.inwind\.it
Next by date: 2 Feb 2007 04:03:00 +0000 Re: a question about Tcl ,Tk ,N xlib and Nano- X, lpgdgs.126.com
Previous in thread: 2 Feb 2007 04:03:00 +0000 Re: About pcf_readbitmaps function, Caleb Harper
Next in thread: 2 Feb 2007 04:03:00 +0000 Re: About pcf_readbitmaps function, Roberto


Powered by ezmlm-browse 0.20.