Module Font
[frames | no frames]

Module Font

The Blender.Text3d.Font subsubmodule.

Text3d.Font Objects

This module provides access to Font objects in Blender.

Example:
 import Blender
 from Blender import Text3d
 
 # Load a font
 myfont= Text3d.Font.Load('/usr/share/fonts/ttf/verdana.ttf')
 
 # 
 for font in Text3d.Font.Get():
   print font.name, font.filename, font.packed

Classes
Font This object gives access Blender's Font objects

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

Function Details

Get(name=None)

Get the Text3d.Font object(s) from Blender.
Parameters:
name - The name of the Text3d object.
           (type=string)
Returns:
It depends on the 'name' parameter:
  • (name): The Text3d object with the given name;
  • (): A list with all Font objects in the current .blend file.

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

Load(filename)

Create a new Text3d.Font object.
Parameters:
filename - file of the font
           (type=string)
Returns:
The created Text3d.Font Data object.
           (type=Blender Text3d.Font)

Generated by Epydoc 2.1 on Sun Feb 11 13:30:19 2007 http://epydoc.sf.net