Date: Mon, 9 May 2005 15:54:33 +0100 From: Aidan Totterdell Subject: RE: [nanogui] ttf2bdf font conversion Hi Greg, > Can you send me the Verdana-18 bdf file, I'll then look at the size 18 > problem. Glad to hear PCF bailed you out for the time being. See attached .bdf file. File was created as follows: 1. ttf2bdf -r 72 -p 18 -m iso8859.15 -w medium -s r -k normal -o verdana_18-iso8859.15.bdf verdana.ttf Then used the following to get .fnt file: 2. bdf2fnt -f -o verdana_18.iso8859.15.fnt verdana_18-iso8859.15.bdf : : I have noted one further issue whereby font sizes of 30 and above appear to : cause corruption in the ttf2bdf output .bdf file. Some characters are : distorted. Any recollection of having similar issues?? > I haven't seen this, are you getting "blocky" characters, or what? I have attached a screen shots from the "pcfdemo" (nano-X demo app) output for a file fontsize=40 fontsize=31 and fontsize=30. The upper right corner of the screen shots display the console output from pcfdemo. If you take note of "Max width" value for each fontsize, you will notice that once the Max width goes greater than 32, character corruption starts to appear. Eg. 1. "&" and "%" characters in pcfdemo_fontsize31.png 2. "$", "#", "M", "N", "m", "n", "w", "x" characters in pcfdemo_fontsize40.png Note: pcfdemo_fontsize30.png there is no corruption (Max width = 32) Thanks, I appreciate your help with this. Aidan -----Original Message----- From: Greg Haerr [mailto:greg@censoft.com] Sent: 06 May 2005 20:27 To: Aidan Totterdell; nanogui@linuxhacker.org Subject: Re: [nanogui] ttf2bdf font conversion : : I had a look at the .c file output generated from the "convbdf" utility and : it looked Ok ie. all widths within box boundry etc.! Not sure what is : happening, due to a tight schedule I changed to using "bdftopcf" from the : X11 library. I reconfigure nano-X to enable PCF font support and this solved : the immediate problem while giving similar compressed file sizes to that of : the .fnt subsystem. Can you send me the Verdana-18 bdf file, I'll then look at the size 18 problem. Glad to hear PCF bailed you out for the time being. : : I have noted one further issue whereby font sizes of 30 and above appear to : cause corruption in the ttf2bdf output .bdf file. Some characters are : distorted. Any recollection of having similar issues?? I haven't seen this, are you getting "blocky" characters, or what? Regards, Greg filename="pcfdemo_screenshots.tar.gz" filename="verdana_18-iso8859.15.bdf"