From: Andrew R. <aro...@ya...> - 2006-01-05 05:48:09
|
At 10:37 AM 4/01/2006 -0800, you wrote: >The fundamental issue here is that PLplot and the various fonts have a >different origin for characters so a transformation has to be applied >between the two depending on font size. The history here is that Andrew= was >the original author of plfreetype.c, and I assume he got this= transformation >done correctly for the windows fonts available to him at that time on his >DJGPP (or was that MinGW?) platform. DJGPP. Gosh, that seems like a long time ago now=85 > But that transformation was not >correct for freefont 2003, and Rafael hacked the code to correct that. I think it was more a case of tweaking them to get them to look better than= =20 hacking ;-). The original DJGPP code was adopted from a screensaver I had written using= =20 freetype. I then just took the freetype code and dropped it into the DJGPP= =20 screen driver. To speed things up in that original screensaver on my=20 Pentium 66 (Gosh, that seems like a long time ago now=85), I made as many=20 code optimisations as I could, like using integer maths and bit=20 transformations rather than floating point ops. Rafael removed the integer= =20 logic and bit-shifts and replaced it with floating point arithmetic, then=20 changed the transformations to match it. >There was no feedback from Andrew about whether those hacks messed up the >transformation for his windows fonts so I assumed until now that it was a >solved problem. However, from Werner's report it appears not. No, it didn't change anything very much; almost imperceivable changes to=20 font sizes and micro-positioning changes is about all, and I think Rafael's= =20 versions were a vast improvement. -Andrew |