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

Jump to navigation Jump to search
m
Line 42: Line 42:


# path is relative to $FG_ROOT (base package)
# path is relative to $FG_ROOT (base package)
var path = "Fonts/Helvetica.png";
var path = "Fonts/Helvetica.txf";
# create an image child for the texture
# create an image child for the texture
var child = root.createChild("image")
var child = root.createChild("image")

Navigation menu