Module Font
[frames | no frames]

Module Font

The Blender.Text3d.Font subsubmodule.

Text3d.Font Objects

This module provides access to Font objects in Blender.

 import Blender
 from Blender import Window, Curve, Object, Scene, Text3d
 txt = Text3d.New("MyText")  # create a new Text3d object called MyText
 cur = Scene.getCurrent()    # get current scene
 ob = Object.New('Text')     # make curve object
 fnt_obj= Text3d.LoadFont('/home/joilnen/c0419bt_.pfb') # here a valid font file
 txt.setFont(fnt_obj)                # link curve data with this object                # link object into scene
 ob.makeDisplayList()        # rebuild the display list for this object

Font This object gives access Blender's Font objects

Function Summary
Blender Text3d or a list of Blender Text3ds Get(name)
Get the Text3d object(s) from Blender.
Blender Text3d.Font New(name)
Create a new Text3d.Font object.

Function Details


Get the Text3d object(s) from Blender.
name - The name of the Text3d object.
It depends on the 'name' parameter:
  • (name): The Text3d object with the given name;
  • (): A list with all Text3d objects in the current scene.

           (type=Blender Text3d or a list of Blender Text3ds)


Create a new Text3d.Font object.
name - file of the font
The created Text3d.Font Data object.
           (type=Blender Text3d.Font)

Generated by Epydoc 2.1 on Mon Jun 13 15:31:22 2005