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 3: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: 1222
Joined: Sat Jul 30, 2011 1: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 3:24 am

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

Re: Failed to open font file

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

Philosopher
 
Posts: 1593
Joined: Sun Aug 12, 2012 7:29 pm

Re: Failed to open font file

Postby omega95 » Wed Jul 23, 2014 10: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: 1222
Joined: Sat Jul 30, 2011 1: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 11:01 pm

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

Alan
Alant
 
Posts: 1219
Joined: Wed Jun 23, 2010 6:58 am
Location: Portugal
Callsign: Tarnish99
Version: latest Git
OS: Windows 10/11

Re: Failed to open font file

Postby omega95 » Wed Jul 23, 2014 11: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: 1222
Joined: Sat Jul 30, 2011 1: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 10: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 11:20 am

Re: Failed to open font file

Postby Hooray » Thu Jul 24, 2014 11: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: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU


Return to Canvas

Who is online

Users browsing this forum: No registered users and 3 guests