Hi Michele,

There is little you can do to improve on the DefaultFont's quality,
its just a very simple inbuilt fallback for when no other fonts are
found or are assigned.   You'll need to assign a decent font.  See
osgtext example.

Robert.

On Jan 7, 2008 2:13 PM, Michele Bosi <[EMAIL PROTECTED]> wrote:
> As you might have guessed m lately very much involved in font
> rendering with OSG...
> As you can se from the small image attached I get quite ugly font
> rendering using the default font.
> The font you see drawn comes from a very simple piece of code, that is:
>
>   osgText::Text* text = new osgText::Text;
>   text->setText("Ciao");
>   text->setAlignment(osgText::Text::CENTER_BASE_LINE);
>   text->setColor(osg::Vec4(1,1,1,1));
>   text->setCharacterSize( 20 );
>   text->setPosition( ... );
>   text->setAutoRotateToScreen(true);
>   text->setCharacterSizeMode(osgText::Text::SCREEN_COORDS);
>
> Is there something wrong with the code I produced or are there hidden
> options to make the text look nicer?
>
> Playing around with the texture font it looks like the text is
> rendered using texture mapping but without bilinear filtering, that
> is, font rendering seems to use "nearest point" sampled texture mapped
> quads, but it's just a guess.
>
> Thanks,
> Michele
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to