Summary
Used to create font objects for use in setFont() for Label, TextField, Button, or TextView objects.
FontObject Font(name,size)
Example
root = new View("ipad-portrait");
label = root.createLabel(400,200);
font = new Font("Helvetica", 36);
label.setText("Hello, World!");
label.setTextAlignment("center");
label.setFont(font);
document.wait();
Font
Construct a new font object
FontObject Font(name,size)
Parameters
name - font name
size - font size in points
Return Value
Font object
Notes
If an invalid font name is passed, a runtime exception is issues. Object only supports system-wide installed fonts on the iOS device.