[osg-users] osgWidget Remaining Issues

Kim C Bale K.Bale at hull.ac.uk
Wed Jul 16 02:06:00 PDT 2008

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. 

Credit to James Ward for the code



-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Farshid
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
> so we made it automatically default to removing the AA when size below
> 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?

osg-users mailing list
osg-users at lists.openscenegraph.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GXBase-smp-freetype02.zip
Type: application/x-zip-compressed
Size: 10168 bytes
Desc: GXBase-smp-freetype02.zip
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080716/2ac73d4b/attachment-0003.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080716/2ac73d4b/attachment-0003.txt>

More information about the osg-users mailing list