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

m
Line 21: Line 21:
== Proof of Concept ==
== Proof of Concept ==
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
# these are the dimensions of the window to be created
var (width,height) = (320,160);
var (width,height) = (320,160);
var title = 'Font Browser (by downpilot)';
var title = 'Font Browser (by downpilot)';
Line 43: Line 44:
     .setFile(path)
     .setFile(path)
     .setTranslation(100, 10)
     .setTranslation(100, 10)
     .setSize(130, 130);
     .setSize(130, 130); # size of the image
</syntaxhighlight>
</syntaxhighlight>