Board index FlightGear Development Canvas

Failed to open font file

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.

Failed to open font file

Postby omega95 » Wed Jul 23, 2014 2:10 am

canvas::Text: Failed to open font file /home/narendran/fgfs/fgdata/Fonts/LiberationFonts/LiberationSans-Regular.ttf


The font file definitely exists and I'm using a font-mapper. The fonts also don't work with the default FG ND. It seems to be showing a Courier New like font instead.
Merlion Virtual Airlines - the experience of a flight time...
Get high quality aircraft, airports, video tutorials or development tools from my hangar.
omega95
 
Posts: 1223
Joined: Sat Jul 30, 2011 12:59 am
Location: -unknown-
Callsign: MIA0001, OM-EGA
IRC name: omega95
Version: 2.12 git
OS: Ubuntu 13.04

Re: Failed to open font file

Postby zlsa » Wed Jul 23, 2014 2:24 am

Same problem here.
zlsa
 
Posts: 145
Joined: Fri Feb 14, 2014 2:29 am
Callsign: N275A
Version: 3.5 git
OS: Linux

Re: Failed to open font file

Postby Philosopher » Wed Jul 23, 2014 3:17 am

Thanks,
Philosopher
(inactive but lurking occasionally...)
Philosopher
 
Posts: 1590
Joined: Sun Aug 12, 2012 6:29 pm
Location: Stuck in my head...
Callsign: AFTI
Version: Git
OS: Mac OS X 10.7.5

Re: Failed to open font file

Postby omega95 » Wed Jul 23, 2014 9:44 pm



The temporary workaround of installing ttf-liberation doesn't work for me. :?
Merlion Virtual Airlines - the experience of a flight time...
Get high quality aircraft, airports, video tutorials or development tools from my hangar.
omega95
 
Posts: 1223
Joined: Sat Jul 30, 2011 12:59 am
Location: -unknown-
Callsign: MIA0001, OM-EGA
IRC name: omega95
Version: 2.12 git
OS: Ubuntu 13.04

Re: Failed to open font file

Postby Alant » Wed Jul 23, 2014 10:01 pm

Also see http://sourceforge.net/p/flightgear/mai ... gmail.com/, which says OSG was not built with freetype.

Alan
Alant
 
Posts: 991
Joined: Wed Jun 23, 2010 5:58 am
Location: Portugal
Callsign: Tarnish99
Version: from Git
OS: Windows 10

Re: Failed to open font file

Postby omega95 » Wed Jul 23, 2014 10:18 pm

The problem was that OSG was build without Freetype support (headers
weren't installed) - this caused the message about not found font though
the real problem was that freetype plugin was missing. And default font
whatever it was didn't have Unicode glyphs.


So, the solution would be to?
Merlion Virtual Airlines - the experience of a flight time...
Get high quality aircraft, airports, video tutorials or development tools from my hangar.
omega95
 
Posts: 1223
Joined: Sat Jul 30, 2011 12:59 am
Location: -unknown-
Callsign: MIA0001, OM-EGA
IRC name: omega95
Version: 2.12 git
OS: Ubuntu 13.04

Re: Failed to open font file

Postby TheTom » Thu Jul 24, 2014 9:46 am

Building OSG with freetype? Have you built OSG on your own?
There is a bug in the current openscenegraph package in Ubuntu 14.04: https://bugs.launchpad.net/ubuntu/+sour ... ug/1339264 which should be fixed in utopic: http://packages.ubuntu.com/utopic/libopenscenegraph-dev I don't know if the dependencies are also satisfied in trusty.
TheTom
 
Posts: 322
Joined: Sun Oct 09, 2011 10:20 am

Re: Failed to open font file

Postby Hooray » Thu Jul 24, 2014 10:08 am

As with png support and other OSG dependencies, we should probably explore exposing their availability (and version) to the property tree, so that we can show the corresponding info in the about dialog, and write it to the fgfs startup log file.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11959
Joined: Tue Mar 25, 2008 8:40 am


Return to Canvas

Who is online

Users browsing this forum: No registered users and 2 guests