Double check and make sure permissions are not an issue. I had that
problem once with my fonts. But as Robert suggested, make sure it is
just that the fonts file isn't readable.

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert
Osfield
Sent: Monday, November 05, 2012 12:10 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgText::readFontFile fails to find font file

 

Hi Mike,

It's a while since I've seen reports of problems finding fonts, so I
guess there must be something unusual going on with your setup/usage.

W.r.t finding fonts, or any files, trying using set the env
OSG_NOTIFY_LEVEL to DEBUG and then look for entries relating to
FindFileInPath, these should tell you where the OSG is looking for the
fonts.

Another avenue you could look at is to try the fonts provided in the
OpenSceneGraph-Data distribution, as perhaps the fonts you are
attempting to read can't be loaded by freetype.

Robert.

On 5 November 2012 15:26, Mike Krus <m...@mve.com> wrote:

Hi,

 

I'm having some issues getting OSG to find my font file in Red Hat
Enterprise Linux 5.8.

 

>From the documentation I can see that osgText::readFontFile should be
looking in /usr/share/fonts/ttf to find my fonts, but this path does not
exist in RHEL.

 

I have added /usr/share/fonts to my OSG_FILE_PATH environment variable
and called
osgText::readFontFile("liberation/LiberationSans-Regular.ttf") or
osgText::readFontFile("/usr/share/fonts/liberation/LiberationSans-Regula
r.ttf") but my font is still not found
(/usr/share/fonts/liberation/LiberationSans-Regular.ttf exists).

 

The error message I receive is: "Warning: Could not find plugin to read
objects from file "..."."

 

I don't receive any other messages relating to the failure to load
plugins, and OSG happily loads Arial in Windows.

 

Any advice you could provide would be really useful.

 

 

 

----
Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681 <tel:%2B44%20141%20332%202681> 
Fax: +44 141 332 6792 <tel:%2B44%20141%20332%206792>  

 


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g

 

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to