File: kerning.rst

package info (click to toggle)
fontparts 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,004 kB
  • sloc: python: 18,702; makefile: 216; javascript: 143
file content (150 lines) | stat: -rw-r--r-- 2,889 bytes parent folder | download | duplicates (4)
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
.. highlight:: python
.. module:: fontParts.base

#######
Kerning
#######

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

Kerning groups must begin with standard prefixes. The prefix for groups intended for use in the first side of a kerning pair is ``public.kern1.``. The prefix for groups intended for use in the second side of a kerning pair is ``public.kern2.``. One or more characters must follow the prefix.

Kerning groups must strictly adhere to the following rules:

#. Kerning group names must begin with the appropriate prefix.
#. Only kerning groups are allowed to use the kerning group prefixes in their names.
#. Kerning groups are not required to appear in the kerning pairs.
#. Glyphs must not appear in more than one kerning group per side.

These rules come from the `Unified Font Object <http://unifiedfontobject.org/versions/ufo3/groups.plist/>`_, more information on implementation details for application developers can be found there.

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

Copy
====

.. autosummary::
    :nosignatures:

    BaseKerning.copy

Parents
=======

.. autosummary::
    :nosignatures:

    BaseKerning.font

Dictionary
==========

.. autosummary::
    :nosignatures:

    BaseKerning.__len__
    BaseKerning.keys
    BaseKerning.items
    BaseKerning.values
    BaseKerning.__contains__
    BaseKerning.__setitem__
    BaseKerning.__getitem__
    BaseKerning.get
    BaseKerning.find
    BaseKerning.__delitem__
    BaseKerning.pop
    BaseKerning.__iter__
    BaseKerning.update
    BaseKerning.clear

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

.. autosummary::
    :nosignatures:

    BaseKerning.scaleBy

Interpolation
=============

.. autosummary::
    :nosignatures:

    BaseKerning.interpolate

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

.. autosummary::
    :nosignatures:

    BaseKerning.round

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

.. autosummary::
    :nosignatures:

    BaseKerning.naked
    BaseKerning.changed

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

.. autoclass:: BaseKerning

Copy
====

.. automethod:: BaseKerning.copy

Parents
=======

.. autoattribute:: BaseKerning.font

Dictionary
==========

.. automethod:: BaseKerning.__len__
.. automethod:: BaseKerning.keys
.. automethod:: BaseKerning.items
.. automethod:: BaseKerning.values
.. automethod:: BaseKerning.__contains__
.. automethod:: BaseKerning.__setitem__
.. automethod:: BaseKerning.__getitem__
.. automethod:: BaseKerning.get
.. automethod:: BaseKerning.find
.. automethod:: BaseKerning.__delitem__
.. automethod:: BaseKerning.pop
.. automethod:: BaseKerning.__iter__
.. automethod:: BaseKerning.update
.. automethod:: BaseKerning.clear

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

.. automethod:: BaseKerning.scaleBy

Interpolation
=============

.. automethod:: BaseKerning.interpolate

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

.. automethod:: BaseKerning.round

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

.. automethod:: BaseKerning.naked
.. automethod:: BaseKerning.changed