Debian Codegraph @

Doc/source/developer.rst

raw
1 :orphan:
2
3 .. _developerinfo:
4 .. image:: ../../Icons/FontToolsIconGreenCircle.png
5 :width: 200px
6 :height: 200px
7 :alt: Font Tools
8 :align: center
9
10
11 fontTools Developer Information
12 ===============================
13
14 If you would like to contribute to the development of fontTools, you can clone the repository from GitHub, install the package in 'editable' mode and modify the source code in place. We recommend creating a virtual environment, using the Python 3 `venv <https://docs.python.org/3/library/venv.html>`_ module::
15
16 # download the source code to 'fonttools' folder
17 git clone https://github.com/fonttools/fonttools.git
18 cd fonttools
19
20 # create new virtual environment called e.g. 'fonttools-venv', or anything you like
21 python -m venv fonttools-venv
22
23 # source the `activate` shell script to enter the environment (Un*x)
24 . fonttools-venv/bin/activate
25
26 # to activate the virtual environment in Windows `cmd.exe`, do
27 fonttools-venv\Scripts\activate.bat
28
29 # install in 'editable' mode
30 pip install -e .
31
32
33 .. note::
34
35 To exit a Python virtual environment, enter the command ``deactivate``.
36
37 Testing
38 -------
39
40 To run the test suite, you need to install `pytest <http://docs.pytest.org/en/latest/>`__.
41 When you run the ``pytest`` command, the tests will run against the
42 installed fontTools package, or the first one found in the
43 ``PYTHONPATH``.
44
45 You can also use `tox <https://tox.readthedocs.io/en/latest/>`__ to
46 automatically run tests on different Python versions in isolated virtual
47 environments::
48
49 pip install tox
50 tox
51
52
53 .. note::
54
55 When you run ``tox`` without arguments, the tests are executed for all the environments listed in the ``tox.ini`` ``envlist``. The Python versions that are not available on your system ``PATH`` will be skipped.
56
57 You can specify a particular testing environment list via the ``-e`` option, or the ``TOXENV`` environment variable::
58
59 tox -e py36
60 TOXENV="py36-cov,htmlcov" tox
61
62
63 Development Community
64 ---------------------
65
66 fontTools development is ongoing in an active community of developers that includes professional developers employed at major software corporations and type foundries as well as hobbyists.
67
68 Feature requests and bug reports are always welcome at https://github.com/fonttools/fonttools/issues/
69
70 The best place for end-user and developer discussion about the fontTools project is the `fontTools gitter channel <https://gitter.im/fonttools-dev/Lobby>`_. There is also a development https://groups.google.com/d/forum/fonttools-dev mailing list for continuous integration notifications.
71
72
73 History
74 -------
75
76 The fontTools project was started by Just van Rossum in 1999, and was
77 maintained as an open source project at
78 http://sourceforge.net/projects/fonttools/. In 2008, Paul Wise (pabs3)
79 began helping Just with stability maintenance. In 2013 Behdad Esfahbod
80 began a friendly fork, thoroughly reviewing the codebase and making
81 changes at https://github.com/behdad/fonttools to add new features and
82 support for new font formats.
83
84
85 Acknowledgments
86 ---------------
87
88 In alphabetical order:
89
90 Olivier Berten, Samyak Bhuta, Erik van Blokland, Petr van Blokland,
91 Jelle Bosma, Sascha Brawer, Tom Byrer, Frédéric Coiffier, Vincent
92 Connare, Dave Crossland, Simon Daniels, Peter Dekkers, Behdad Esfahbod,
93 Behnam Esfahbod, Hannes Famira, Sam Fishman, Matt Fontaine, Yannis
94 Haralambous, Greg Hitchcock, Jeremie Hornus, Khaled Hosny, John Hudson,
95 Denis Moyogo Jacquerye, Jack Jansen, Tom Kacvinsky, Jens Kutilek,
96 Antoine Leca, Werner Lemberg, Tal Leming, Peter Lofting, Cosimo Lupo,
97 Masaya Nakamura, Dave Opstad, Laurence Penney, Roozbeh Pournader, Garret
98 Rieger, Read Roberts, Guido van Rossum, Just van Rossum, Andreas Seidel,
99 Georg Seifert, Chris Simpkins, Miguel Sousa, Adam Twardoch, Adrien Tétar, Vitaly Volkov,
100 Paul Wise.
101
102 License
103 -------
104
105 `MIT license <https://github.com/fonttools/fonttools/blob/main/LICENSE>`_. See the full text of the license for details.
106
107 .. |Travis Build Status| image:: https://travis-ci.org/fonttools/fonttools.svg
108 :target: https://travis-ci.org/fonttools/fonttools
109 .. |Appveyor Build status| image:: https://ci.appveyor.com/api/projects/status/0f7fmee9as744sl7/branch/master?svg=true
110 :target: https://ci.appveyor.com/project/fonttools/fonttools/branch/master
111 .. |Coverage Status| image:: https://codecov.io/gh/fonttools/fonttools/branch/main/graph/badge.svg
112 :target: https://codecov.io/gh/fonttools/fonttools
113 .. |PyPI| image:: https://img.shields.io/pypi/v/fonttools.svg
114 :target: https://pypi.org/project/FontTools
115 .. |Gitter Chat| image:: https://badges.gitter.im/fonttools-dev/Lobby.svg
116 :alt: Join the chat at https://gitter.im/fonttools-dev/Lobby
117 :target: https://gitter.im/fonttools-dev/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge