appendGlyph() with offset in RoboFab vs. RoboFont

31 views
Skip to first unread message

Nina Stössinger

unread,
Oct 12, 2014, 4:24:47 PM10/12/14
to rob...@googlegroups.com
Hello all,

The RoboFab site mentions under Methods (of the Glyph object)

> appendGlyph(aGlyph, (offsetX=0, offsetY=0))
(http://robofab.org/objects/glyph.html)

This gives a Syntax Error in RoboFont where instead, this syntax works:

> appendGlyph(aGlyph, offset=(x, y))

Is this new? Should it be reflected on the Robofab site? Or is it just the implementation in RoboFont that differs? (Sorry if these are dumb questions)

Cheers,
Nina

Frederik Berlaen

unread,
Oct 12, 2014, 4:53:37 PM10/12/14
to rob...@googlegroups.com
He Nina

Arguments inside a tuple can never have a name or key id. The offset of appendGlyph always has been a coordinate. The docs just tries to show the default values (0,0), in a funny way ;)

Also see https://github.com/robofab-developers/robofab/blob/master/Lib/robofab/objects/objectsBase.py#L1515
--
--
You received this message because you are subscribed to the Google Groups "RoboFab" group.
To post to this group, send email to rob...@googlegroups.com
To unsubscribe from this group, send email to robofab-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/robofab?hl=en

Messages from newly joined members are subject to moderation.
Download RoboFab and documentation at http://robofab.com
---
You received this message because you are subscribed to the Google Groups "RoboFab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robofab+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
gr Frederik
www.typemytype.com

Nina Stoessinger

unread,
Oct 12, 2014, 5:24:55 PM10/12/14
to rob...@googlegroups.com
Aaah. Thank you Frederik! 

Nina
Reply all
Reply to author
Forward
0 new messages