Skip to content
DrawBot is a powerful 2D graphics scripting tool.
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DrawBot.roboFontExt
.gitignore
README.md
drawBotMechanicIcon.png
license.txt

README.md

DrawBot RoboFont Extension

DrawBot inside RoboFont.

The extension has access to all the RoboFont API and callbacks. So for example CurrentFont() and CurrentGlyph() are directly accessible in a script!

Additional Callbacks

drawGlyph(aGlyph) draws a glyph

bezierPath.addGlyph(aglyph) adds a glyph to the BezierPath object

Settings

There is one setting: you can tell RoboFont to use DrawBot as the default .py editor.

As Module

The extension installs also drawBot as module. This allows to use import drawBot and use drawBot in any script.

from drawBot import *
# reset the drawing stack
newDrawing()
# loop over all glyphs
for glyph in CurrentFont():
	# create a new page
	newPage(1000, 1000)
	# draw each glyph on the page
	drawGlyph(glyph)
You can’t perform that action at this time.