Howto:Creating a Font Browser using Nasal and Canvas: Difference between revisions

m
Line 8: Line 8:


== Approach ==
== Approach ==
since FlightGear uses OpenSceneGraph, and since [http://www.openscenegraph.org/index.php/documentation/user-guides/61-osgplugins OSG supports TXF ],  we might use Nasal/Canvas to display a list of fonts and even preview them inside fgfs (?)
since FlightGear uses OpenSceneGraph, and since [http://www.openscenegraph.org/index.php/documentation/user-guides/61-osgplugins OSG supports TXF file],  we might be able use Nasal/Canvas to display a list of fonts and even preview them inside fgfs by simply rendering them as a raster image.


To see for yourself, modify the Canvas image example to point to a font file:  
To see for yourself, modify the Canvas image example to point to a font file: