File: bpoint.rst

package info (click to toggle)
fontparts 0.13.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,996 kB
  • sloc: python: 18,700; makefile: 216; javascript: 143
file content (136 lines) | stat: -rw-r--r-- 2,401 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
.. highlight:: python
.. module:: fontParts.base

######
bPoint
######

***********
Description
***********

The :class:`bPoint <BaseBPoint>` is a point object which mimics the old “Bezier Point” from RoboFog. It has attributes for :attr:`bcpIn <BaseBPoint.bcpIn>`, anchor, bcpOut and type. The coordinates in bcpIn and bcpOut are relative to the position of the anchor. For instance, if the bcpIn is 20 units to the left of the anchor, its coordinates would be (-20,0), regardless of the coordinates of the anchor itself. Also: bcpIn will be (0,0) when it is “on top of the anchor”, i.e. when there is no bcp it will still have a value. The parent of a bPoint is usually a :class:`Contour <BaseContour>`.



********
Overview
********

Parents
=======

.. autosummary::
    :nosignatures:

    BaseBPoint.contour
    BaseBPoint.glyph
    BaseBPoint.layer
    BaseBPoint.font

Identification
==============

.. autosummary::
    :nosignatures:

    BaseBPoint.index

Attributes
==========

.. autosummary::
    :nosignatures:

    BaseBPoint.type

Points
======

.. autosummary::
    :nosignatures:

    BaseBPoint.anchor
    BaseBPoint.bcpIn
    BaseBPoint.bcpOut

Transformations
===============

.. autosummary::
    :nosignatures:

    BaseBPoint.transformBy
    BaseBPoint.moveBy
    BaseBPoint.scaleBy
    BaseBPoint.rotateBy
    BaseBPoint.skewBy

Normalization
=============

.. autosummary::
    :nosignatures:

    BaseBPoint.round

Environment
===========

.. autosummary::
    :nosignatures:

    BaseBPoint.naked
    BaseBPoint.changed


*********
Reference
*********

.. autoclass:: BaseBPoint

Parents
=======

.. autoattribute:: BaseBPoint.contour
.. autoattribute:: BaseBPoint.glyph
.. autoattribute:: BaseBPoint.layer
.. autoattribute:: BaseBPoint.font

Identification
==============

.. autoattribute:: BaseBPoint.index

Attributes
==========

.. autoattribute:: BaseBPoint.type

Points
======

.. autoattribute:: BaseBPoint.anchor
.. autoattribute:: BaseBPoint.bcpIn
.. autoattribute:: BaseBPoint.bcpOut

Transformations
===============

.. automethod:: BaseBPoint.transformBy
.. automethod:: BaseBPoint.moveBy
.. automethod:: BaseBPoint.scaleBy
.. automethod:: BaseBPoint.rotateBy
.. automethod:: BaseBPoint.skewBy

Normalization
=============

.. automethod:: BaseBPoint.round

Environment
===========

.. automethod:: BaseBPoint.naked
.. automethod:: BaseBPoint.changed