const Clutter = imports.gi.Clutter;
const Gtk = imports.gi.Gtk;

function connect_destroy(o) {
    o.connect('destroy', function () {
        Clutter.main_quit();
    });
}

function main() {
    let str = "<span font=\"VL Gothic Bold 48\">1234567890</span>";
    // let str = "<span font=\"Cantarell Bold 48\">1234567890</span>";

    Clutter.init(null);
    Gtk.init(null);

    stage = new Clutter.Stage();
    connect_destroy(stage);
    text = new Clutter.Text({ text: str, use_markup: true });
    stage.add_child(text);
    stage.show();

    toplevel = new Gtk.Window(Gtk.WindowType.toplevel);
    connect_destroy(toplevel);
    label = new Gtk.Label({ label: str, use_markup: true });
    toplevel.add(label);
    toplevel.show_all();

    Clutter.main();
}

main();
