nanogui: PCF font render regression?


Previous by date: 30 Apr 2010 15:51:09 -0000 Re: Screenshot of FreeType2 2.3.5, Greg Haerr
Next by date: 30 Apr 2010 15:51:09 -0000 Re: Screenshot of FreeType2 2.3.5, Greg Haerr
Previous in thread: 30 Apr 2010 15:51:09 -0000 PCF font render regression?, Daniel Nyström
Next in thread: 30 Apr 2010 15:51:09 -0000 Re: [nanogui] PCF font render regression?, Daniel Nyström

Subject: Re: [nanogui] PCF font render regression?
From: "Greg Haerr" ####@####.####
Date: 30 Apr 2010 15:51:09 -0000
Message-Id: <00cb01cae87d$38320a40$0300a8c0@RDP>

: What's happened to PCF font rendering? There's no space between digits
: and the space character is fully ignored. Attaching two images where
: "pcfok.png" is showing old nano-X (latest prior moving to Git) and
: "pcffail.png" shows the current version from Git.

I have made some changes to font_pcf.c over the last several months,
trying to perfect output from NXLIB for FLTK, where funnily enough,
I had the exact problem with the space character.  The fix entailed
ADDING width to the space character.

Are you using GrText to output these strings all at once?
Perhaps you should post this program as well, (I know it 
looks quite simple!)

The area that I modified in font_pcf includes:

/* HACK: adjust width of SPACE char when == 1 large (use 'e') for now*/ 
if (i == ' ' && gwidth[n] <= 1) 
n += 'e'-' ';

Try commenting that out.  I will have to look into the other issues,

I'm not sure what the problem is yet.  Do you happen

to have a version of font_pcf.c that works you could send me?

Regards,

Greg


Previous by date: 30 Apr 2010 15:51:09 -0000 Re: Screenshot of FreeType2 2.3.5, Greg Haerr
Next by date: 30 Apr 2010 15:51:09 -0000 Re: Screenshot of FreeType2 2.3.5, Greg Haerr
Previous in thread: 30 Apr 2010 15:51:09 -0000 PCF font render regression?, Daniel Nyström
Next in thread: 30 Apr 2010 15:51:09 -0000 Re: [nanogui] PCF font render regression?, Daniel Nyström


Powered by ezmlm-browse 0.20.