[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
About pcf_readbitmaps function
From: "max xiayi" ####@####.#### Date: 31 Jan 2007 08:15:28 +0000 Message-Id: <afda14700701310014j5afc398ak5cd3a61484899af4@mail.gmail.com> Hi I am using Microwindoz in my ARM platform, for font display, i use PCF file, however, i crashes at pcf_readbitmaps function, the line is num_glyphs = readLSB32(file); it seems that the num_glyphs is not read correctly. who knows why? Thanks | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] About pcf_readbitmaps function
From: "Greg Haerr" ####@####.#### Date: 31 Jan 2007 16:40:06 +0000 Message-Id: <138a01c74556$63625080$6401a8c0@winXP> : num_glyphs = readLSB32(file); : it seems that the num_glyphs is not read correctly. This function, in engine/font_pcf.c, is supposed to read a 32 bit LSB-ordered longword from the pcf file and return it in machine-dependent format. If the system is crashing in that function, it's probably the dwswap() function, which is defined in include/swap.h. If its crashing after the function call, but when num_glyphs is used, then you're endianness is likely incorrect. Check your endian format and make sure that the config file has it specified correctly. (BIGENDIAN=Y or N) Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] About pcf_readbitmaps function
From: "Caleb Harper" ####@####.#### Date: 1 Feb 2007 06:06:41 +0000 Message-Id: <2e9c26800701312206x72ac58dt9254b6170111f0c2@mail.gmail.com> 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 > > > > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 > > > > > > > > > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] About pcf_readbitmaps function
From: Roberto ####@####.#### Date: 3 Feb 2007 10:47:55 +0000 Message-Id: <45C4681C.8020701@tnw2000.org> Hi Caleb, I'm not sure, because its some time ago, but I thik I had some problems with pcf fonts which have more than 256 glyphs included. The pcf function only allocated space for 256 glyphs which resulted in a segmentation fault with bigger pcf files. But like mentioned above, it was some years ago I had this effect. May be your problem is different. roberto Caleb Harper wrote: > 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 >> > >> >> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |