HI Andres,

Does the osgtext example work fine?

Does the error only occur in your own application?

Robert.

On 24 September 2014 13:02, Andrés Barrionuevo <[email protected]> wrote:

> Hello!
>
>
> I've updated from version 3.0.1 to version 3.2.1. I'm testing it but
> everything seems fine except for the Freetype plugin.
>
> I want to display text using the Arial font. OSG seems to find the font
> and load the freetype plugin, but the text displaying is "cubic".
>
> With version 3.0.1 the text looks fine.
>
> I've uploaded two pics to show the problem.
>
> Any help will be appreciated.
>
> ---------- CODE ------------
>
>
> Code:
>
>     const char* font_name = "arial.ttf";
>     const std::string found = osgText::findFontFile( font_name );
>     osg::ref_ptr<osgText::Font> font = osgText::readFontFile( found );
>
>     qDebug() << "FOUND:" << found.c_str();
>     if( !font.valid() ) {
>         qDebug() << "WARNING! COULDN'T FIND FONT:" << font_name;
>         font = osgText::Font::getDefaultFont();
>     }
>
>
>
>
> PS: I've checked and this time I'm not mixing debug and release libraries.
>
> Target platform: Windows 8.1 64 bit
> Compiler: MinGW 4.5 64 bit
>
> ---
>
> Thanks and cheers,
> Andrés.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=61137#61137
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/osg32_430.png
> http://forum.openscenegraph.org//files/osg301_220.png
>
>
> _______________________________________________
> 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