Debian Codegraph @

docs/Anchor.md

raw
1 ---
2 title: Anchor
3 ---
4 Anchor(name: str, x: int = 0, y: int = 0, _formatspecific: dict = <factory>, _: dict = None)
5 ## Anchor.name
6
7 * Python type: `str`
8
9 * **Required field**
10
11
12
13
14 ## Anchor.x
15
16 * Python type: `int`
17
18
19 *If not provided, defaults to* `0`.
20
21
22 ## Anchor.y
23
24 * Python type: `int`
25
26
27 *If not provided, defaults to* `0`.
28
29
30 ## Anchor._formatspecific
31
32 * Python type: `dict`
33
34
35 Each object in Babelfont has an optional attached dictionary to allow the storage
36 of format-specific information. Font creation software may store any additional
37 information that they wish to have preserved on import and export under a
38 namespaced (reverse-domain) key in this dictionary. For example, information
39 specific to the Glyphs software should be stored under the key `com.glyphsapp`.
40 The value stored under this key may be any data serializable in JSON; typically
41 it will be a `dict`.
42
43 Note that there is an important distinction between the Python object format
44 of this field and the Babelfont-JSON representation. When stored to JSON, this key
45 is exported not as `_formatspecific` but as a simple underscore (`_`).
46
47
48