//# Rendering TTF fonts
//This example shows how to render basic text
import ui.TextView as TextView;
//## Class: Application.js
exports = Class(GC.Application, function () {
this.initUI = function () {
this.view.style.backgroundColor = "#FFFFFF";
new TextView({
superview: this.view,
layout: 'box',
fontFamily: 'BPreplayBold',
text: "The quick brown fox jumped over the lazy dog's back",
size: 30,
wrap: true
});
};
this.launchUI = function () {};
});
//The output should look like this screenshot:
//