From: Clive M. <Cli...@ms...> - 2009-12-07 21:22:38
|
I did some experiments in an attempt to 'smooth out' this small issue (pun intended) of the join-dots. Rather than attempt to modify things like the point size from outside freeglut I made direct modifications inside freeglut_font.c adjacent to the actual OpenGL calls -- the results are curious. All the experiments were with Windows XP on the following GPUs with their varying OpenGL drivers: Nvidia 8800GT GL2.1 Nvidia 6200 GL2.0 Intel 945GM GL1.4 Nvidia Ion GL3.0 Intel X4500 GL2.0 I don't have any ATI/AMD hardware to do tests with. The results varied. I had glEnable(GL_POINT_SMOOTH) & LINE_SMOOTH etc. turned on in all cases except the 945GM which has a hard time with this. I set glPointSize() to half the current line width, derived from glGetFloatv(GL_LINE_WIDTH) this improved the look of the stroke fonts. I tried doing the opposite, that is doubling the line width, but this did nothing!? Very odd since these are _very_ basic OpenGL calls after all. The Nvidia Ion did the best -- nice smooth rounded endings to the line segments, no sign of the join dots. The X4500 and the 8800GT showed dots at the segment joins and the lines were thin. The 945GM had nice fat line segments so the join dots were minimal. The 6200 was in between. My conclusion: your mileage may vary. Clive. -------------------------------------------------- From: "Fay, John F Dr CTR USAF AFMC 46 SK" <joh...@eg...> Sent: Saturday, December 05, 2009 8:50 AM To: "FreeGLUT developers list" <fre...@li...> Subject: Re: [Freeglut-developer] stroke fonts have dots > My vote regarding the "freeglut" fonts would be not to mess with them > (beyond the question of yes or no on the dots on the stroke fonts) and > to point the application programmers towards "freetype" or PLIB's "fnt" > library. > > John F. Fay > Technical Fellow > Jacobs Technology TEAS Group > 850-883-1294 > > -----Original Message----- > From: Clive McCarthy [mailto:Cli...@ms...] > Sent: Saturday, December 05, 2009 10:03 AM > To: FreeGLUT developers list > Subject: Re: [Freeglut-developer] stroke fonts have dots > > John, John T, > A very brief two-minute look suggests to me that to provide a hook for > user > provided bitmap fonts would require exposing the small structure > SGF_Font by > moving its definition from freeglut_internal.h to freeglut_ext.h and > creating a variant of glutBitmapCharacter that did not require a > pre-defined > font ID. > > The freeglut code ultimately calls glBitmap so the glyphs are, I think, > just > masked onto the background and there is no alpha blending (it's one bit > per > pixel). The good quality anti-aliasing done by freetype would go to > waste. > What would be preferable would be to use glDrawPixels instead of > glBitmap > for any external fonts. > > Clive. > > -------------------------------------------------- > From: "John Tsiombikas" <nu...@me...> > Sent: Friday, December 04, 2009 9:16 AM > To: <fre...@li...> > Subject: Re: [Freeglut-developer] stroke fonts have dots > >> On Fri, Dec 04, 2009 at 09:26:59AM -0600, Fay, John F Dr CTR USAF AFMC > 46 >> SK wrote: >>> I had forgotten about the multiplatform support. >>> >>> Are there Windows and OSX libraries for truetypefonts and > opentypefonts? >> >> Freetype is cross-platform. >> I could easily clean up some code I have for font rendering with >> freetype and add it to the demos if that's useful... >> >> -- >> John Tsiombikas >> http://nuclear.sdf-eu.org/ >> >> > ------------------------------------------------------------------------ > ------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> Freeglut-developer mailing list >> Fre...@li... >> https://lists.sourceforge.net/lists/listinfo/freeglut-developer >> > > ------------------------------------------------------------------------ > ------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Freeglut-developer mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freeglut-developer > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Freeglut-developer mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freeglut-developer > |