[osg-users] osgWidget Remaining Issues

Jeremy Moles jeremy at emperorlinux.com
Wed Jul 16 03:36:38 PDT 2008


On Wed, 2008-07-16 at 10:06 +0100, Kim C Bale wrote:
> This wasn't using OSG but rather pure OpenGL. However, I have attached
> the relevant code in a zip. Jeremy might find this interesting too.
> 
> Basically if the font size <= 12 pixels, we change the FT_Load_Char call
> to include the FT_LOAD_TARGET_MONO flag which tells freetype to create a
> monochrome bitmap for the character instead of greyscale. (See the
> FTFont class)
> 
> So, I should imagine that would require a modification to the Freetype
> plugin if it were to be used with OSG. Although I haven't looked at that
> code so I can't say for sure.
> 
> This works very well for pixel aligned 2D screen fonts. 

How do "enforce" pixel alignment in OSG though?

> Credit to James Ward for the code
> 
> Regards,
> 
> Kim.
> 
> -----Original Message-----
> From: osg-users-bounces at lists.openscenegraph.org
> [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Farshid
> Lashkari
> Sent: 15 July 2008 17:19
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] osgWidget Remaining Issues
> 
> On Tue, Jul 15, 2008 at 5:41 AM, Kim C Bale <K.Bale at hull.ac.uk> wrote:
> > Just to reinforce the above point, we used the freetype library to
> > generate OpenGL screen fonts here and found that for font sizes <12
> > Disabling anti-aliasing really improved the clarity of the font. So
> much
> > so we made it automatically default to removing the AA when size below
> a
> > threshold were set.
> 
> Thanks for the advice Kim. Did you have to modify the source for the
> freetype plugin to disable AA? I can't find where this is an option?
> 
> -Farshid
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
> g
> *****************************************************************************************
> To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html
> *****************************************************************************************
> _______________________________________________ osg-users mailing list osg-users at lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list