[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
font problems
From: tj ####@####.#### Date: 1 Mar 2006 05:51:04 +0000 Message-Id: <44053644.5030005@comcast.net> I am trying to create .pcf fonts from a X server. The fonts are extracted using fstobdf to get a bdf file and then bdftopcf to get a .pcf file. However, nano-X server blows up when I try to load my .pcf font. I also tried ttf2bdf for .ttf files and then bdftopcf, but it did the same thing. What am I doing wrong. Jeff | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Font problems
From: tj ####@####.#### Date: 2 Mar 2006 19:30:55 +0000 Message-Id: <4407481E.4060007@comcast.net> maybe I do not understand the fonts systems, well I really don't understand them, and teh GrCreateFont() function. I am able to load .pcf.gz fonts with font = GrCreateFont(<Full Pathname>, 1, NULL); The font .pcf.gz came form my X fonts directory like: helvBO18-ISO8859-1.pcf.gz And it loads fine. But, I have beeen playing around and I try to load a .bdf and get: fnt_createfont: /home/dufus/nano-X-src/testFontSize/luxisb.bdf,1 not found pcf_createfont: /home/dufus/nano-X-src/testFontSize/luxisb.bdf,1 not found But, it is there. Also what purpose does the GR_LOGFONT serve? can .pcf fonts be resized, etc. I have also had a problem with .pcf file created from ttf file segfaulting nano-X. Like, I down load a TTF file and run it through tt2bdf and the resultant .bdf through bdftopcf. But then when I load the pcf file, gip'ed or not, nano-X segfaults. I have discovered on thing though. Trying to under stand the X system's font system is enough to drive anybody back to the MS Windows world. So can anybody help me or point me to some docs that explain it all? tj | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Font problems
From: "Greg Haerr" ####@####.#### Date: 3 Mar 2006 02:59:18 +0000 Message-Id: <01de01c63e6e$28ce9630$6401a8c0@winXP> : But, I have beeen playing around and I try to load a .bdf and get: : fnt_createfont: /home/dufus/nano-X-src/testFontSize/luxisb.bdf,1 not found Nano-X can't load .bdf fonts, they need to be converted to .fnt or .pcf format. : Also what purpose does the GR_LOGFONT serve? can .pcf fonts be resized, etc. No, .pcf files are fixed bitmap images. GR_LOGFONT allows programmatic selection of fonts by requesting attributes, rather than knowing a specific font filename. : : I have also had a problem with .pcf file created from ttf file : segfaulting nano-X. : : Like, I down load a TTF file and run it through tt2bdf and the resultant : .bdf through bdftopcf. But then when I load the pcf file, gip'ed or not, : nano-X segfaults. I'm not sure why this is yet, perhaps the .pcf font conversions aren't working properly. I'm not aware of any .pcf file from the X11 distribution that won't work, however. I assume also you're running the CVS code, since some .pcf fixes were added. It would be nice to know whether these core dumps occur on a desktop intel system, or instead only on your target. We had some endian issues previously. : : I have discovered on thing though. Trying to under stand the X system's : font system is enough to drive anybody back to the MS Windows world. Agreed. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |