Module Font

Module Font

source code

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
Functions
Blender Text3d.Font
Load(filename)
Create a new Text3d.Font object.
source code
Blender Text3d or a list of Blender Text3ds
Get(name=None)
Get the Text3d.Font object(s) from Blender.
source code
Function Details

Load(filename)

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

Get(name=None)

source code 
Get the Text3d.Font object(s) from Blender.
Parameters:
  • name (string) - The name of the Text3d object.
Returns: Blender Text3d or a list of Blender Text3ds
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.