nanogui: PCF font render regression?


Previous by date: 3 May 2010 15:34:40 -0000 Re: Screenshot of FreeType2 2.3.5, Greg Haerr
Next by date: 3 May 2010 15:34:40 -0000 Re: [nanogui] Screenshot of FreeType2 2.3.5, Daniel Nyström
Previous in thread: 3 May 2010 15:34:40 -0000 Re: PCF font render regression?, Greg Haerr
Next in thread: 3 May 2010 15:34:40 -0000 Re: [nanogui] PCF font render regression?, Daniel Nyström

Subject: Re: [nanogui] PCF font render regression?
From: Daniel ####@####.####
Date: 3 May 2010 15:34:40 -0000
Message-Id: <v2id08fc9ca1005030833u47abc286q76e6c4a418c7d8d4@mail.gmail.com>

2010/4/30 Greg Haerr ####@####.####
> : 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?

My quick fix was to checkout font_pcf.c prior this years
modifications, which now works perfectly (== looks exactly as
earlier). If I get some time tomorrow I'll try with some of the
editions between the old one and the current one in git repo.

Regards
Daniel

Previous by date: 3 May 2010 15:34:40 -0000 Re: Screenshot of FreeType2 2.3.5, Greg Haerr
Next by date: 3 May 2010 15:34:40 -0000 Re: [nanogui] Screenshot of FreeType2 2.3.5, Daniel Nyström
Previous in thread: 3 May 2010 15:34:40 -0000 Re: PCF font render regression?, Greg Haerr
Next in thread: 3 May 2010 15:34:40 -0000 Re: [nanogui] PCF font render regression?, Daniel Nyström


Powered by ezmlm-browse 0.20.