Erik van Blokland 3646055ea2 initial import
git-svn-id: http://svn.robofab.com/trunk@1 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 17:40:34 +00:00

24 lines
522 B
Python

# robofab manual
# Glyph object
# Usage examples
# start using the current font
from robofab.world import CurrentGlyph
g = CurrentGlyph()
# suppose you've done the right imports
# different ways of creating glyphs
# a new empty glyph object
g = robofab.world.RGlyph()
# a new empty fontlab glyph object
g = robofab.objects.objectsFL.RGlyph()
# a new empty robofab glyph object
g = robofab.objects.objectsRF.RGlyph()
# the easiest way to get a new glyph
# is to ask a font to make you one:
g = aFontObject[glyphName]