ho risolto per il font

mancava

clip. testo.setTextFormat(testoformat);

ma perchè mi dà il Nan, alcune volte?