Board index FlightGear Development Canvas

Canvas:: text: missing 'ttf' font reader

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

Canvas:: text: missing 'ttf' font reader

Postby sathish » Wed Oct 24, 2018 1:29 pm

Hi...
when i am running flightgear 2017.3.1, it is showing me missing 'ttf' font reader in the console...
Can any one suggest me what plugin or library i am missing here ???
sathish
 
Posts: 42
Joined: Tue Mar 13, 2018 12:51 pm

Re: Canvas:: text: missing 'ttf' font reader

Postby legoboyvdlp » Wed Oct 24, 2018 1:55 pm

Hi,
Did you self-build OSG / FlightGear?
What operating system?

I had that as well - the only soloution was to copy / paste the OSG .dlls and OSGplugins folder from the stable 2018.2 release /bin folder of FlightGear into the /bin/ folder of the compiled version.
User avatar
legoboyvdlp
 
Posts: 6872
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Canvas:: text: missing 'ttf' font reader

Postby sathish » Tue Oct 30, 2018 10:23 am

I am having ubutnu 16.04 version
and i have build the osg,simgear and flightgear by executing the ccmake and make cmd.

what do you mean by self-build?
sathish
 
Posts: 42
Joined: Tue Mar 13, 2018 12:51 pm

Re: Canvas:: text: missing 'ttf' font reader

Postby legoboyvdlp » Tue Oct 30, 2018 12:10 pm

self-build is what you did, building it yourself as opposed to downloading a pre-compiled executable.

On Ubuntu, I'm not sure my method of copying the osgPlugins .dlls will work, does Linux use .dlls?
User avatar
legoboyvdlp
 
Posts: 6872
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Canvas:: text: missing 'ttf' font reader

Postby wkitty42 » Tue Oct 30, 2018 1:28 pm

@lego, linux dlls are .so files... so == Shared Object...

in my builds with the d&c script, there are also created script files to execute flightgear... these are necessary to set the proper library path so that FG can find and load the so files...

eg: this one for normal operations...
Code: Select all
#!/bin/bash
cd $(dirname $0)
cd install/flightgear/bin
export LD_LIBRARY_PATH=/opt/qt59/lib/x86_64-linux-gnu:/opt/qt59/lib:../../simgear/lib:../../openscenegraph/lib:../../openrti/lib:../../plib/lib
./fgfs --fg-root=$PWD/../fgdata/ $@


and this one for running FG in gdb for debugging...
Code: Select all
#!/bin/bash
cd $(dirname $0)
cd install/flightgear/bin
export LD_LIBRARY_PATH=/opt/qt59/lib/x86_64-linux-gnu:/opt/qt59/lib:../../simgear/lib:../../openscenegraph/lib:../../openrti/lib:../../plib/lib
export OSG_NOTIFY_LEVEL=DEBUG
gdb  --directory=/home/wkitty42/flightgear-dev/next/flightgear/src --args fgfs --fg-root=$PWD/../fgdata/ $@
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5510
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5


Return to Canvas

Who is online

Users browsing this forum: No registered users and 3 guests