Debian Codegraph @

docs/Shape.md

raw
1 ---
2 title: Shape
3 ---
4 Shape(ref: str = None, transform: fontTools.misc.transform.Transform = None, nodes: [<class 'babelfont.Node.Node'>] = None, closed: bool = True, direction: int = 1, _formatspecific: dict = <factory>, _: dict = None)
5 * When writing to Babelfont-JSON, this class must be serialized without newlines
6 ## Shape.ref
7
8 * Python type: `str`
9
10
11 *If not provided, defaults to* `None`.
12
13
14 ## Shape.transform
15
16 * Python type: `Transform`
17
18
19 *If not provided, defaults to* `None`.
20
21
22 ## Shape.nodes
23
24 * Python type: `[Node]`
25
26
27 *If not provided, defaults to* `None`.
28
29
30 ## Shape.closed
31
32 * Python type: `bool`
33
34
35 *If not provided, defaults to* `True`.
36
37
38 ## Shape.direction
39
40 * Python type: `int`
41
42
43 *If not provided, defaults to* `1`.
44
45
46 ## Shape._formatspecific
47
48 * Python type: `dict`
49
50
51 Each object in Babelfont has an optional attached dictionary to allow the storage
52 of format-specific information. Font creation software may store any additional
53 information that they wish to have preserved on import and export under a
54 namespaced (reverse-domain) key in this dictionary. For example, information
55 specific to the Glyphs software should be stored under the key `com.glyphsapp`.
56 The value stored under this key may be any data serializable in JSON; typically
57 it will be a `dict`.
58
59 Note that there is an important distinction between the Python object format
60 of this field and the Babelfont-JSON representation. When stored to JSON, this key
61 is exported not as `_formatspecific` but as a simple underscore (`_`).
62
63
64