import Blenderfrom Blender import Window, Curve, Object, Scene, Text3d#txt = Text3d.New("MyText") # create a new Text3d object called MyTextcur = Scene.getCurrent() # get current sceneob = Object.New('Text') # make curve objectfnt_obj= Text3d.LoadFont('C:\WINDOWS\Fonts\Arial.TTF') # here a valid font filetxt.setFont(fnt_obj)ob.link(txt) # link curve data with this objectcur.link(ob) # link object into sceneob.makeDisplayList() # rebuild the display list for this objectWindow.RedrawAll()