Skip to content

Instantly share code, notes, and snippets.

@jay3sh
Created November 29, 2011 14:57
Show Gist options
  • Select an option

  • Save jay3sh/1405079 to your computer and use it in GitHub Desktop.

Select an option

Save jay3sh/1405079 to your computer and use it in GitHub Desktop.

Revisions

  1. Jayesh Salvi created this gist Nov 29, 2011.
    16 changes: 16 additions & 0 deletions text-example.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #!/usr/bin/python

    import sys
    import math
    sys.path.append('./src')

    from cadmium import *

    stlfname = sys.argv[1]

    s = Text('Cadmium',
    fontpath='DejaVuSerif.ttf', # Give full path on your system
    height=5,
    thickness=2)

    s.toSTL(stlfname)