@LINKER table
You have to pass a table to the @LINKER
preprocessor command. The following tags are
currently recognized:
Files:
Files
must be exactly identical
to the ones passed to Hollywood functions which should then load the linked files instead.
If you don't use identical file paths, Hollywood won't be able to map the files linked
to the applet or executable to the corresponding commands. See Linking data files for details.
Fonts:
Fonts
tag of the @LINKER
preprocessor command
to link fonts into applets or executables is an alternative to using the @FONT
preprocessor command. Normally, however, using @FONT should be much easier than
using Fonts
so you should use Fonts
only with good reasons. See Linking fonts for details.
@LINKER {Files = {"test.jpg", "title.png"}, {Fonts = {"Arial", "Times New Roman"}} LoadBGPic(1, "test.jpg") LoadBrush(1, "title.png") SetFont("Arial", 36) NPrint("Hello World") SetFont("Times New Roman", 72) NPrint("Hello Hollywood")The code above links the files
test.jpg
and title.png
to the applet
or executable. LoadBGPic() and LoadBrush()
will then the load the files directly from the applet or the executable instead of
an external source. Additionally, the fonts Arial
and Times New Roman
will be linked to the applet or executable, and SetFont() will
also open those fonts directly from the applet or executable then.