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
|
.. highlight:: python
.. module:: fontParts.base
####
Info
####
***********
Description
***********
The :class:`Info <BaseInfo>` object contains all names, numbers, URLs, dimensions, values, etc. that would otherwise clutter up the font object. You don't have to create a :class:`Info <BaseInfo>` object yourself, :class:`Font <BaseFont>` makes one when it is created.
:class:`Info <BaseInfo>` validates any value set for a `Info <BaseInfo>` item, but does not check if the data is sane (i.e., you can set valid but incorrect data).
The :class:`Info <BaseInfo>` object (as any other fontParts object) does not allow to modify mutable containers (like lists) in-place. Always get a value, modify it and then set it back to perform an edit.
For a list of info attributes, refer to the `UFO fontinfo.plist Specification <https://unifiedfontobject.org/versions/ufo3/fontinfo.plist/#specification>`_.
********
Overview
********
.. autosummary::
:nosignatures:
BaseInfo.copy
BaseInfo.font
BaseInfo.interpolate
BaseInfo.round
BaseInfo.update
BaseInfo.naked
BaseInfo.changed
*********
Reference
*********
.. autoclass:: BaseInfo
Copy
====
.. automethod:: BaseInfo.copy
Parents
=======
.. autoattribute:: BaseInfo.font
Interpolation
=============
.. automethod:: BaseInfo.interpolate
Normalization
=============
.. automethod:: BaseInfo.round
Update
======
.. automethod:: BaseInfo.update
Environment
===========
.. automethod:: BaseInfo.naked
.. automethod:: BaseInfo.changed
|