aboutsummaryrefslogtreecommitdiff
@c The GNU Free Documentation License.
@center Version 1.3, 3 November 2008

@c This file is intended to be included within another document,
@c hence no sectioning command or @node.

@display
Copyright @copyright{} 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
@uref{https://fsf.org/}

Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@end display

@enumerate 0
@item
PREAMBLE

The purpose of this License is to make a manual, textbook, or other
functional and useful document @dfn{free} in the sense of freedom: to
assure everyone the effective freedom to copy and redistribute it,
with or without modifying it, either commercially or noncommercially.
Secondarily, this License preserves for the author and publisher a way
to get credit for their work, while not being considered responsible
for modifications made by others.

This License is a kind of ``copyleft'', which means that derivative
works of the document must themselves be free in the same sense.  It
complements the GNU General Public License, which is a copyleft
license designed for free software.

We have designed this License in order to use it for manuals for free
software, because free software needs free documentation: a free
program should come with manuals providing the same freedoms that the
software does.  But this License is not limited to software manuals;
it can be used for any textual work, regardless of subject matter or
whether it is published as a printed book.  We recommend this License
principally for works whose purpose is instruction or reference.

@item
APPLICABILITY AND DEFINITIONS

This License applies to any manual or other work, in any medium, that
contains a notice placed by the copyright holder saying it can be
distributed under the terms of this License.  Such a notice grants a
world-wide, royalty-free license, unlimited in duration, to use that
work under the conditions stated herein.  The ``Document'', below,
refers to any such manual or work.  Any member of the public is a
licensee, and is addressed as ``you''.  You accept the license if you
copy, modify or distribute the work in a way requiring permission
under copyright law.

A ``Modified Version'' of the Document means any work containing the
Document or a portion of it, either copied verbatim, or with
modifications and/or translated into another language.

A ``Secondary Section'' is a named appendix or a front-matter section
of the Document that deals exclusively with the relationship of the
publishers or authors of the Document to the Document's overall
subject (or to related matters) and contains nothing that could fall
directly within that overall subject.  (Thus, if the Document is in
part a textbook of mathematics, a Secondary Section may not explain
any mathematics.)  The relationship could be a matter of historical
connection with the subject or with related matters, or of legal,
commercial, philosophical, ethical or political position regarding
them.

The ``Invariant Sections'' are certain Secondary Sections whose titles
are designated, as being those of Invariant Sections, in the notice
that says that the Document is released under this License.  If a
section does not fit the above definition of Secondary then it is not
allowed to be designated as Invariant.  The Document may contain zero
Invariant Sections.  If the Document does not identify any Invariant
Sections then there are none.

The ``Cover Texts'' are certain short passages of text that are listed,
as Front-Cover Texts or Back-Cover Texts, in the notice that says that
the Document is released under this License.  A Front-Cover Text may
be at most 5 words, and a Back-Cover Text may be at most 25 words.

A ``Transparent'' copy of the Document means a machine-readable copy,
represented in a format whose specification is available to the
general public, that is suitable for revising the document
straightforwardly with generic text editors or (for images composed of
pixels) generic paint programs or (for drawings) some widely available
drawing editor, and that is suitable for input to text formatters or
for automatic translation to a variety of formats suitable for input
to text formatters.  A copy made in an otherwise Transparent file
format whose markup, or absence of markup, has been arranged to thwart
or discourage subsequent modification by readers is not Transparent.
An image format is not Transparent if used for any substantial amount
of text.  A copy that is not ``Transparent'' is called ``Opaque''.

Examples of suitable formats for Transparent copies include plain
ASCII without markup, Texinfo input format, La@TeX{} input
format, SGML or XML using a publicly available
DTD, and standard-conforming simple HTML,
PostScript or PDF designed for human modification.  Examples
of transparent image formats include PNG, XCF and
JPG.  Opaque formats include proprietary formats that can be
read and edited only by proprietary word processors, SGML or
XML for which the DTD and/or processing tools are
not generally available, and the machine-generated HTML,
PostScript or PDF produced by some word processors for
output purposes only.

The ``Title Page'' means, for a printed book, the title page itself,
plus such following pages as are needed to hold, legibly, the material
this License requires to appear in the title page.  For works in
formats which do not have any title page as such, ``Title Page'' means
the text near the most prominent appearance of the work's title,
preceding the beginning of the body of the text.

The ``publisher'' means any person or entity that distributes copies
of the Document to the public.

A section ``Entitled XYZ'' means a named subunit of the Document whose
title either is precisely XYZ or contains XYZ in parentheses following
text that translates XYZ in another language.  (Here XYZ stands for a
specific section name mentioned below, such as ``Acknowledgements'',
``Dedications'', ``Endorsements'', or ``History''.)  To ``Preserve the Title''
of such a section when you modify the Document means that it remains a
section ``Entitled XYZ'' according to this definition.

The Document may include Warranty Disclaimers next to the notice which
states that this License applies to the Document.  These Warranty
Disclaimers are considered to be included by reference in this
License, but only as regards disclaiming warranties: any other
implication that these Warranty Disclaimers may have is void and has
no effect on the meaning of this License.

@item
VERBATIM COPYING

You may copy and distribute the Document in any medium, either
commercially or noncommercially, provided that this License, the
copyright notices, and the license notice saying this License applies
to the Document are reproduced in all copies, and that you add no other
conditions whatsoever to those of this License.  You may not use
technical measures to obstruct or control the reading or further
copying of the copies you make or distribute.  However, you may accept
compensation in exchange for copies.  If you distribute a large enough
number of copies you must also follow the conditions in section 3.

You may also lend copies, under the same conditions stated above, and
you may publicly display copies.

@item
COPYING IN QUANTITY

If you publish printed copies (or copies in media that commonly have
printed covers) of the Document, numbering more than 100, and the
Document's license notice requires Cover Texts, you must enclose the
copies in covers that carry, clearly and legibly, all these Cover
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
the back cover.  Both covers must also clearly and legibly identify
you as the publisher of these copies.  The front cover must present
the full title with all words of the title equally prominent and
visible.  You may add other material on the covers in addition.
Copying with changes limited to the covers, as long as they preserve
the title of the Document and satisfy these conditions, can be treated
as verbatim copying in other respects.

If the required texts for either cover are too voluminous to fit
legibly, you should put the first ones listed (as many as fit
reasonably) on the actual cover, and continue the rest onto adjacent
pages.

If you publish or distribute Opaque copies of the Document numbering
more than 100, you must either include a machine-readable Transparent
copy along with each Opaque copy, or state in or with each Opaque copy
a computer-network location from which the general network-using
public has access to download using public-standard network protocols
a complete Transparent copy of the Document, free of added material.
If you use the latter option, you must take reasonably prudent steps,
when you begin distribution of Opaque copies in quantity, to ensure
that this Transparent copy will remain thus accessible at the stated
location until at least one year after the last time you distribute an
Opaque copy (directly or through your agents or retailers) of that
edition to the public.

It is requested, but not required, that you contact the authors of the
Document well before redistributing any large number of copies, to give
them a chance to provide you with an updated version of the Document.

@item
MODIFICATIONS

You may copy and distribute a Modified Version of the Document under
the conditions of sections 2 and 3 above, provided that you release
the Modified Version under precisely this License, with the Modified
Version filling the role of the Document, thus licensing distribution
and modification of the Modified Version to whoever possesses a copy
of it.  In addition, you must do these things in the Modified Version:

@enumerate A
@item
Use in the Title Page (and on the covers, if any) a title distinct
from that of the Document, and from those of previous versions
(which should, if there were any, be listed in the History section
of the Document).  You may use the same title as a previous version
if the original publisher of that version gives permission.

@item
List on the Title Page, as authors, one or more persons or entities
responsible for authorship of the modifications in the Modified
Version, together with at least five of the principal authors of the
Document (all of its principal authors, if it has fewer than five),
unless they release you from this requirement.

@item
State on the Title page the name of the publisher of the
Modified Version, as the publisher.

@item
Preserve all the copyright notices of the Document.

@item
Add an appropriate copyright notice for your modifications
adjacent to the other copyright notices.

@item
Include, immediately after the copyright notices, a license notice
giving the public permission to use the Modified Version under the
terms of this License, in the form shown in the Addendum below.

@item
Preserve in that license notice the full lists of Invariant Sections
and required Cover Texts given in the Document's license notice.

@item
Include an unaltered copy of this License.

@item
Preserve the section Entitled ``History'', Preserve its Title, and add
to it an item stating at least the title, year, new authors, and
publisher of the Modified Version as given on the Title Page.  If
there is no section Entitled ``History'' in the Document, create one
stating the title, year, authors, and publisher of the Document as
given on its Title Page, then add an item describing the Modified
Version as stated in the previous sentence.

@item
Preserve the network location, if any, given in the Document for
public access to a Transparent copy of the Document, and likewise
the network locations given in the Document for previous versions
it was based on.  These may be placed in the ``History'' section.
You may omit a network location for a work that was published at
least four years before the Document itself, or if the original
publisher of the version it refers to gives permission.

@item
For any section Entitled ``Acknowledgements'' or ``Dedications'', Preserve
the Title of the section, and preserve in the section all the
substance and tone of each of the contributor acknowledgements and/or
dedications given therein.

@item
Preserve all the Invariant Sections of the Document,
unaltered in their text and in their titles.  Section numbers
or the equivalent are not considered part of the section titles.

@item
Delete any section Entitled ``Endorsements''.  Such a section
may not be included in the Modified Version.

@item
Do not retitle any existing section to be Entitled ``Endorsements'' or
to conflict in title with any Invariant Section.

@item
Preserve any Warranty Disclaimers.
@end enumerate

If the Modified Version includes new front-matter sections or
appendices that qualify as Secondary Sections and contain no material
copied from the Document, you may at your option designate some or all
of these sections as invariant.  To do this, add their titles to the
list of Invariant Sections in the Modified Version's license notice.
These titles must be distinct from any other section titles.

You may add a section Entitled ``Endorsements'', provided it contains
nothing but endorsements of your Modified Version by various
parties---for example, statements of peer review or that the text has
been approved by an organization as the authoritative definition of a
standard.

You may add a passage of up to five words as a Front-Cover Text, and a
passage of up to 25 words as a Back-Cover Text, to the end of the list
of Cover Texts in the Modified Version.  Only one passage of
Front-Cover Text and one of Back-Cover Text may be added by (or
through arrangements made by) any one entity.  If the Document already
includes a cover text for the same cover, previously added by you or
by arrangement made by the same entity you are acting on behalf of,
you may not add another; but you may replace the old one, on explicit
permission from the previous publisher that added the old one.

The author(s) and publisher(s) of the Document do not by this License
give permission to use their names for publicity for or to assert or
imply endorsement of any Modified Version.

@item
COMBINING DOCUMENTS

You may combine the Document with other documents released under this
License, under the terms defined in section 4 above for modified
versions, provided that you include in the combination all of the
Invariant Sections of all of the original documents, unmodified, and
list them all as Invariant Sections of your combined work in its
license notice, and that you preserve all their Warranty Disclaimers.

The combined work need only contain one copy of this License, and
multiple identical Invariant Sections may be replaced with a single
copy.  If there are multiple Invariant Sections with the same name but
different contents, make the title of each such section unique by
adding at the end of it, in parentheses, the name of the original
author or publisher of that section if known, or else a unique number.
Make the same adjustment to the section titles in the list of
Invariant Sections in the license notice of the combined work.

In the combination, you must combine any sections Entitled ``History''
in the various original documents, forming one section Entitled
``History''; likewise combine any sections Entitled ``Acknowledgements'',
and any sections Entitled ``Dedications''.  You must delete all
sections Entitled ``Endorsements.''

@item
COLLECTIONS OF DOCUMENTS

You may make a collection consisting of the Document and other documents
released under this License, and replace the individual copies of this
License in the various documents with a single copy that is included in
the collection, provided that you follow the rules of this License for
verbatim copying of each of the documents in all other respects.

You may extract a single document from such a collection, and distribute
it individually under this License, provided you insert a copy of this
License into the extracted document, and follow this License in all
other respects regarding verbatim copying of that document.

@item
AGGREGATION WITH INDEPENDENT WORKS

A compilation of the Document or its derivatives with other separate
and independent documents or works, in or on a volume of a storage or
distribution medium, is called an ``aggregate'' if the copyright
resulting from the compilation is not used to limit the legal rights
of the compilation's users beyond what the individual works permit.
When the Document is included in an aggregate, this License does not
apply to the other works in the aggregate which are not themselves
derivative works of the Document.

If the Cover Text requirement of section 3 is applicable to these
copies of the Document, then if the Document is less than one half of
the entire aggregate, the Document's Cover Texts may be placed on
covers that bracket the Document within the aggregate, or the
electronic equivalent of covers if the Document is in electronic form.
Otherwise they must appear on printed covers that bracket the whole
aggregate.

@item
TRANSLATION

Translation is considered a kind of modification, so you may
distribute translations of the Document under the terms of section 4.
Replacing Invariant Sections with translations requires special
permission from their copyright holders, but you may include
translations of some or all Invariant Sections in addition to the
original versions of these Invariant Sections.  You may include a
translation of this License, and all the license notices in the
Document, and any Warranty Disclaimers, provided that you also include
the original English version of this License and the original versions
of those notices and disclaimers.  In case of a disagreement between
the translation and the original version of this License or a notice
or disclaimer, the original version will prevail.

If a section in the Document is Entitled ``Acknowledgements'',
``Dedications'', or ``History'', the requirement (section 4) to Preserve
its Title (section 1) will typically require changing the actual
title.

@item
TERMINATION

You may not copy, modify, sublicense, or distribute the Document
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense, or distribute it is void, and
will automatically terminate your rights under this License.

However, if you cease all violation of this License, then your license
from a particular copyright holder is reinstated (a) provisionally,
unless and until the copyright holder explicitly and finally
terminates your license, and (b) permanently, if the copyright holder
fails to notify you of the violation by some reasonable means prior to
60 days after the cessation.

Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, receipt of a copy of some or all of the same material does
not give you any rights to use it.

@item
FUTURE REVISIONS OF THIS LICENSE

The Free Software Foundation may publish new, revised versions
of the GNU Free Documentation License from time to time.  Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.  See
@uref{https://www.gnu.org/copyleft/}.

Each version of the License is given a distinguishing version number.
If the Document specifies that a particular numbered version of this
License ``or any later version'' applies to it, you have the option of
following the terms and conditions either of that specified version or
of any later version that has been published (not as a draft) by the
Free Software Foundation.  If the Document does not specify a version
number of this License, you may choose any version ever published (not
as a draft) by the Free Software Foundation.  If the Document
specifies that a proxy can decide which future versions of this
License can be used, that proxy's public statement of acceptance of a
version permanently authorizes you to choose that version for the
Document.

@item
RELICENSING

``Massive Multiauthor Collaboration Site'' (or ``MMC Site'') means any
World Wide Web server that publishes copyrightable works and also
provides prominent facilities for anybody to edit those works.  A
public wiki that anybody can edit is an example of such a server.  A
``Massive Multiauthor Collaboration'' (or ``MMC'') contained in the
site means any set of copyrightable works thus published on the MMC
site.

``CC-BY-SA'' means the Creative Commons Attribution-Share Alike 3.0
license published by Creative Commons Corporation, a not-for-profit
corporation with a principal place of business in San Francisco,
California, as well as future copyleft versions of that license
published by that same organization.

``Incorporate'' means to publish or republish a Document, in whole or
in part, as part of another Document.

An MMC is ``eligible for relicensing'' if it is licensed under this
License, and if all works that were first published under this License
somewhere other than this MMC, and subsequently incorporated in whole
or in part into the MMC, (1) had no cover texts or invariant sections,
and (2) were thus incorporated prior to November 1, 2008.

The operator of an MMC Site may republish an MMC contained in the site
under CC-BY-SA on the same site at any time before August 1, 2009,
provided the MMC is eligible for relicensing.

@end enumerate

@page
@heading ADDENDUM: How to use this License for your documents

To use this License in a document you have written, include a copy of
the License in the document and put the following copyright and
license notices just after the title page:

@smallexample
@group
  Copyright (C)  @var{year}  @var{your name}.
  Permission is granted to copy, distribute and/or modify this document
  under the terms of the GNU Free Documentation License, Version 1.3
  or any later version published by the Free Software Foundation;
  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  Texts.  A copy of the license is included in the section entitled ``GNU
  Free Documentation License''.
@end group
@end smallexample

If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
replace the ``with@dots{}Texts.''@: line with this:

@smallexample
@group
    with the Invariant Sections being @var{list their titles}, with
    the Front-Cover Texts being @var{list}, and with the Back-Cover Texts
    being @var{list}.
@end group
@end smallexample

If you have Invariant Sections without Cover Texts, or some other
combination of the three, merge those two alternatives to suit the
situation.

If your document contains nontrivial examples of program code, we
recommend releasing these examples in parallel under your choice of
free software license, such as the GNU General Public License,
to permit their use in free software.

@c Local Variables:
@c ispell-local-pdict: "ispell-dict"
@c End:
gz5qflva")))) (build-system python-build-system) (propagated-inputs (list python-fonttools-minimal)) (native-inputs (list python-setuptools-scm python-pytest python-pytest-runner python-wheel unzip)) (home-page "https://github.com/robotools/fontMath") (synopsis "Fast font mathematical operations library") (description "This package provides a set of objects for performing fast font, glyph, etc. mathematical operations on font data.") (license license:expat))) ;;; An untested variant used to break a cycle with python-booleanoperations. (define-public python-fontpens-bootstrap (package (name "python-fontpens-bootstrap") (version "0.2.4") (source (origin (method url-fetch) (uri (pypi-uri "fontPens" version ".zip")) (sha256 (base32 "1za15dzsnymq6d9x7xdfqwgw4a3003wj75fn2crhyidkfd2s3nd6")))) (build-system python-build-system) (arguments (list #:tests? #f)) (propagated-inputs (list python-fonttools-minimal)) (native-inputs (list unzip)) (home-page "https://github.com/robofab-developers/fontPens") (synopsis "Python classes implementing the pen protocol") (description "This package provides a collection of Python classes implementing the pen protocol for manipulating glyphs.") (license license:bsd-3))) (define-public python-fontpens (hidden-package (package/inherit python-fontpens-bootstrap (name "python-fontpens") (arguments (substitute-keyword-arguments (package-arguments python-fontpens-bootstrap) ((#:tests? _ #f) #t) ((#:phases phases #~%standard-phases) #~(modify-phases #$phases (add-after 'unpack 'drop-flaky-docstring ;; XXX This assertion fails on certain (Intel?) machines, but not ;; others (AMD?), so we can't patch in a ‘correct’ value. Just ;; drop it until the proper fix lands upstream. Reported there ;; as <https://github.com/robotools/fontPens/issues/41>. (lambda _ (substitute* "Lib/fontPens/penTools.py" ((".*\\(\\(0, 0), \\(50, 20), \\(100, 40)).*") "") ((".*107\\.70329614269009.*") "")))))))) (native-inputs (modify-inputs (package-native-inputs python-fontpens-bootstrap) (append python-fontparts-bootstrap python-fontpens-bootstrap python-pytest python-pytest-runner)))))) ;;; A variant used to break a cycle with python-fontpens. (define-public python-fontparts-bootstrap (hidden-package (package (name "python-fontparts-bootstrap") (version "0.11.0") (source (origin (method url-fetch) (uri (pypi-uri "fontParts" version ".zip")) (sha256 (base32 "0j4h8hszky639gmfy1avmw670y80ya49kca8yc635h5ihl0c3v8x")))) (build-system python-build-system) (propagated-inputs (list python-booleanoperations python-defcon-bootstrap python-fontmath python-fonttools-minimal)) (native-inputs (list python-setuptools-scm unzip)) (home-page "https://github.com/robotools/fontParts") (synopsis "Library for interacting with font parts") (description "FontParts is an @acronym{API, Application Programming Interface} for interacting with the parts of fonts during the font development process. FontParts is the successor of RoboFab.") (license license:expat)))) (define-public python-fontparts (package/inherit python-fontparts-bootstrap (name "python-fontparts") (propagated-inputs (modify-inputs (package-propagated-inputs python-fontparts-bootstrap) (replace "python-defcon-bootstrap" python-defcon))) (properties (alist-delete 'hidden? (package-properties python-fontparts-bootstrap))))) (define-public python-glyphslib (package (name "python-glyphslib") (version "6.0.7") (source (origin (method url-fetch) (uri (pypi-uri "glyphsLib" version)) (sha256 (base32 "0mkkwd09g76hvif603ij5aqicxh47zvhgyyd0pjcjmpdy6dr70yw")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~'(;; These fail because the test data has not yet been ;; updated for newer FontTools: ;; https://github.com/googlefonts/glyphsLib/issues/787 ;; Re-enable for versions > 6.0.7. "--ignore=tests/builder/designspace_gen_test.py" "--ignore=tests/builder/interpolation_test.py"))) (native-inputs (list python-setuptools-scm python-setuptools python-wheel ;; For tests. python-pytest python-xmldiff)) (propagated-inputs (list python-defcon python-fonttools python-openstep-plist python-ufolib2 python-ufo2ft python-ufonormalizer)) (home-page "https://github.com/googlefonts/glyphsLib") (synopsis "Bridge Glyphs source files to UFOs") (description "This package provides a bridge from Glyphs source files (@file{.glyphs}) to UFOs and DesignSpace files via @code{defcon} and @code{designspaceLib}.") (license license:asl2.0))) (define-public python-glyphsets (package (name "python-glyphsets") (version "0.5.2") (source (origin (method url-fetch) (uri (pypi-uri "glyphsets" version)) (sha256 (base32 "1dc24i0hkd85gkkg3bqjhagjyw3xsqxazd86yh2l60c1wr5n9y6g")))) (build-system python-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'loosen-version-constraints (lambda _ (substitute* "setup.py" (("setuptools_scm>=4,<6\\.1") "setuptools_scm>=4")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "-vv" "tests/testglyphdata.py") (invoke "pytest" "-vv" "tests/testusage.py"))))))) (native-inputs (list python-pytest python-setuptools-scm)) (propagated-inputs (list python-defcon python-fonttools-minimal python-glyphslib)) (home-page "https://github.com/googlefonts/glyphsets/") (synopsis "Evaluate coverage of glyph sets") (description "This package provides an API with data about glyph sets for many different scripts and languages.") (license license:asl2.0))) (define-public python-opentype-sanitizer (package (name "python-opentype-sanitizer") (version "8.2.1") (source (origin (method url-fetch) (uri (pypi-uri "opentype-sanitizer" version)) (sha256 (base32 "1wjy6chbnj9ic5yjxal6spln5jfzr8cigqs6ab0gj7q60dndrl5k")))) (build-system python-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'unbundle-opentype-sanitizer (lambda* (#:key inputs #:allow-other-keys) (delete-file-recursively "src/c") (substitute* "setup.py" (("^cmdclass\\[\"download\"].*") "") (("^cmdclass\\[\"build_ext\"].*") "") (("^cmdclass\\[\"egg_info\"].*") "")) (substitute* "src/python/ots/__init__.py" (("^OTS_SANITIZE = .*") (format #f "OTS_SANITIZE = ~s~%" (search-input-file inputs "bin/ots-sanitize")))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "-vv"))))))) (native-inputs (list python-pytest python-setuptools-scm)) (inputs (list opentype-sanitizer)) (home-page "https://github.com/googlefonts/ots-python") (synopsis "Python wrapper for OpenType Sanitizer") (description "Python wrapper for the OpenType Sanitizer library.") (license license:bsd-3))) (define-public python-mutatormath (package (name "python-mutatormath") (version "3.0.1") (source (origin (method url-fetch) (uri (pypi-uri "MutatorMath" version ".zip")) (sha256 (base32 "0r1qq45np49x14zz1zwkaayqrn7m8dn2jlipjldg2ihnmpzw29w1")))) (build-system python-build-system) (propagated-inputs (list python-defcon python-fontmath python-fonttools-minimal)) (native-inputs (list unzip)) (home-page "https://github.com/LettError/MutatorMath") (synopsis "Piecewise linear interpolation Python library") (description "MutatorMath is a Python library for the calculation of piecewise linear interpolations in n-dimensions with any number of masters. It was developed for interpolating data related to fonts, but if can handle any arithmetic object.") (license license:bsd-3))) (define-public psautohint-font-data ;; There is no release tag, so use the latest commit. (let ((revision "0") (commit "1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23")) (hidden-package (package (name "psautohint-font-data") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/adobe-type-tools/psautohint-testdata") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "0p7g8mnndzp8zpbj9h6lkvfdpvd74fy10q8wmkagbg2ahbdi1zva")))) (build-system copy-build-system) (home-page "https://github.com/adobe-type-tools/psautohint-testdata") (synopsis "Test font data psautohint") (description "This package contains the font data used by the test suite of the @code{psautohint} package.") ;; The bundle contains font data from the Cantarell, Libertinus, Source ;; Code Pro, Source Serif Pro, all available under the same license. (license license:silofl1.1))))) (define-public psautohint (package (name "psautohint") (version "2.4.0") (source (origin (method url-fetch) (uri (pypi-uri "psautohint" version)) (sha256 (base32 "0zzz7hy1kkkjfrrm9ly2di3xv2x1ywdqhbyqy21k670jysldw3nm")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "-k" (string-join '(;; The CJKSparseVar.subset.hinted.otf test fails with slightly ;; different output caused by the newer fonttools version used ;; in Guix. "not CJKSparseVar.subset.hinted.otf" ;; These tests fails underministically, See also: ;; https://github.com/adobe-type-tools/afdko/issues/1678 "not test_hashmap_no_version" "not test_hashmap_old_version") " and ")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'copy-font-data ;; The data is copied as it needs to be writable for the tests. (lambda _ (copy-recursively #$(this-package-native-input "psautohint-font-data") "tests/integration/data") (for-each make-file-writable (find-files "tests/integration/data"))))))) (inputs (list python-fonttools)) (native-inputs (list psautohint-font-data python-pytest python-pytest-cov python-pytest-xdist python-setuptools-scm python-setuptools python-wheel)) (home-page "https://github.com/adobe-type-tools/psautohint") (synopsis "Adobe's PostScript autohinter") (description "This package provides the @command{autohinter} command that can be used to hint PostScript fonts. A Python wrapper is also included.") (license license:asl2.0))) (define-public python-sfdlib (package (name "python-sfdlib") (version "1.2.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aliftype/sfdLib") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1q61km32i1h3cmn8nazcgsbzpm8q2nxp3kq3glqgfgvlxr1s3brm")))) (build-system python-build-system) (propagated-inputs (list python-ufolib2)) (home-page "https://github.com/aliftype/sfdLib") (synopsis "Simple SFD to UFO converter") (description "This package provides the @command{sfd2ufo} command, a converter from FontForge’s @acronym{SFD, Spline Font Database} fonts to @acronym{UFO, Unified Font Object} fonts.") (license license:bsd-3))) (define-public python-skia-pathops (package (name "python-skia-pathops") (version "0.8.0") (source (origin (method url-fetch) (uri (pypi-uri "skia-pathops" version ".zip")) (modules '((guix build utils))) (snippet '(delete-file-recursively "src/cpp")) ;140+ MiB of stuff (sha256 (base32 "1vlwl1w6sn8c78fsh1w549n3lk9v3v9hcp866vrsdr4byb7g2ani")))) (build-system python-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'configure-env (lambda _ (setenv "BUILD_SKIA_FROM_SOURCE" "0"))) (add-after 'unpack 'adjust-c++-language (lambda _ ;; Our version of Skia requires c++17. (substitute* "setup.py" (("-std=c\\+\\+14") "-std=c++17")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "-vv"))))))) (native-inputs (list pkg-config python-cython python-pytest python-setuptools-scm unzip)) (inputs (list skia)) (home-page "https://github.com/fonttools/skia-pathops") (synopsis "Python bindings for the Skia library's Path Ops module") (description "This package provides Python bindings for the Path Ops module of the Skia library, performing boolean operations on paths (intersection, union, difference, xor).") (license license:bsd-3))) (define-public python-ufoprocessor (package (name "python-ufoprocessor") (version "1.9.0") (source (origin (method url-fetch) (uri (pypi-uri "ufoProcessor" version ".zip")) (sha256 (base32 "0ns11aamgavgsfj8qf5kq7dvzmgl0mhr1cbych2f075ipfdvva5s")))) (build-system python-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? ;; Most of the tests appear to be a work in ;; progress; run only a subset. (invoke "python" "Tests/tests.py"))))))) (propagated-inputs (list python-defcon python-fontmath python-fontparts python-fonttools-minimal python-mutatormath)) (native-inputs (list python-setuptools-scm unzip)) (home-page "https://github.com/LettError/ufoProcessor") (synopsis "Process and generate @acronym{UFO, Unified Font Object} files") (description "This Python package processes and generates instances for @acronym{UFO, Unified Font Object} files, glyphs and other data. It can, among other things: @itemize @item Collect source materials. @item Provide mutators for specific glyphs, font info, kerning so that other tools can generate partial instances. @item Support designspace format 4 with layers. @item Apply avar-like designspace bending. @item Apply rules. @item Generate actual UFO instances in formats 2 and 3. @item Round geometry as requested. @end itemize") (license license:expat))) (define-public python-ufonormalizer (package (name "python-ufonormalizer") (version "0.6.1") (source (origin (method url-fetch) (uri (pypi-uri "ufonormalizer" version ".zip")) (sha256 (base32 "0v5awian2alap7nvxfz38aahyqbqnma16nrqcpr8602hbbki04g6")))) (build-system python-build-system) (native-inputs (list python-setuptools-scm unzip)) (home-page "https://github.com/unified-font-object/ufoNormalizer") (synopsis "Script to normalize @acronym{UFO, Unified Font Object} data") (description "The purpose of the @command{ufonormalizer} command is to provide a standard formatting so that updates to @acronym{UFO, Unified Font Object} data can be usefully versioned. Examples of formatting applied by ufoNormalizer include: @itemize @item Changing floating-point numbers to integers where it doesn't alter the value (e.g. @samp{x=\"95.0\"} becomes @samp{x=\"95\"}) @item Rounding floating-point numbers to 10 digits @item Formatting XML with tabs rather than spaces. @end itemize") (license license:bsd-3))) (define-public fontobene-qt (package (name "fontobene-qt") (version "1.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/fontobene/fontobene-qt") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "098ys33l563hjyzm6azzw8kmlybja374vacakczwhh2k3ifn37r9")))) (inputs (list qtbase)) (build-system cmake-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "./tests/fontobene-qt-tests"))))))) (home-page "https://github.com/fontobene/fontobene-qt5") (synopsis "Parser for FontoBene stroke fonts") (description "FontoBene-Qt is a header-only library to parse FontoBene stroke fonts with C++11/Qt.") ;; Dual-licensed, either license applies. (license (list license:asl2.0 license:expat)))) (define-public fontobene-qt5 (deprecated-package "fontobene-qt5" fontobene-qt)) (define-public ttfautohint (package (name "ttfautohint") (version "1.8.3") (source (origin (method url-fetch) (uri (string-append "mirror://savannah/freetype/ttfautohint-" version ".tar.gz")) (sha256 (base32 "0zpqgihn3yh3v51ynxwr8asqrijvs4gv686clwv7bm8sawr4kfw7")))) (build-system gnu-build-system) (native-inputs (list flex bison pkg-config)) (inputs (list freetype harfbuzz)) (arguments `(#:configure-flags '("--disable-static" "--with-qt=no"))) ;no gui (synopsis "Automated font hinting") (description "ttfautohint provides a 99% automated hinting process and a platform for finely hand-hinting the last 1%. It is ideal for web fonts and supports many scripts.") (license (list license:gpl2+ license:freetype)) ;choose one or the other (home-page "https://www.freetype.org/ttfautohint/"))) (define-public woff-tools (package (name "woff-tools") (version "2009.10.04") (source (origin (method url-fetch) ;; Upstream source is unversioned, so use Debian's versioned tarball (uri (string-append "mirror://debian/pool/main/w/woff-tools/" "woff-tools_" version ".orig.tar.gz")) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1i97gkqa6jfzlslsngqf556kx60knlgf7yc9pzsq2pizc6f0d4zl")))) (build-system gnu-build-system) (inputs (list zlib)) (arguments `(#:make-flags '(,(string-append "CC=" (cc-for-target))) #:tests? #f ;no tests #:phases (modify-phases %standard-phases (delete 'configure) ;no configuration (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (bin (string-append out "/bin"))) (install-file "sfnt2woff" bin) (install-file "woff2sfnt" bin)) #t))))) (synopsis "Convert between OpenType and WOFF fonts") (description "This package provides two tools: @table @code @item sfnt2woff Converts OpenType fonts to WOFF fonts @item woff2sfnt Converts WOFF fonts to OpenType fonts @end table") (license (list license:mpl1.1 license:gpl2+ license:lgpl2.1+)) (home-page "https://people.mozilla.com/~jkew/woff/"))) (define-public ttf2eot (package (name "ttf2eot") (version "0.0.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/wget/ttf2eot") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0l2yh2ialx7135pjzhjs204kk3br7zxjr09zwaia493by2adzigr")) (patches (list (search-patch "ttf2eot-cstddef.patch"))))) (build-system gnu-build-system) (arguments `(#:tests? #f ; no tests #:phases (modify-phases %standard-phases (delete 'configure) ; no configuration (replace 'install ; no install target (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (bin (string-append out "/bin"))) (install-file "ttf2eot" bin) #t)))))) (synopsis "Convert from TrueType to Embeddable Open Type") (description "This package contains a commandline wrapper around OpenTypeUtilities.cpp from Chromium, used to make EOT (Embeddable Open Type) files from TTF (TrueType/OpenType Font) files.") ;; While the README states "License: Derived from WebKit, so BSD/LGPL ;; 2/LGPL 2.1", the single derived source file includes only BSD in its ;; license header, and the wrapper source contains no license header. (license license:bsd-2) (home-page "https://github.com/wget/ttf2eot"))) (define-public ttf2pt1 (package (name "ttf2pt1") (version "3.4.4") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/ttf2pt1/ttf2pt1/" version "/ttf2pt1-" version ".tgz")) (sha256 (base32 "1l718n4k4widx49xz7qrj4mybzb8q67kp2jw7f47604ips4654mf")) (modules '((guix build utils))) (snippet '(begin ;; Remove trailing backslashes in the sed expression of the ;; 'install' rule since sed would otherwise fail. (substitute* "Makefile" (("\\|;\\\\[[:space:]]*$") "|; ")) #t)))) (build-system gnu-build-system) (arguments '(#:tests? #f ;no tests #:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (substitute* "Makefile" (("INSTDIR =.*") (string-append "INSTDIR = " out "\n")) (("OWNER = .*") "OWNER = `id -un`\n") (("GROUP = .*") "GROUP = `id -g`\n")) #t))) (replace 'build (lambda _ (invoke "make" "-j" (number->string (parallel-job-count)) "all" "CC=gcc")))))) (inputs (list perl)) (synopsis "Convert TrueType fonts to Postscript Type 1") (description "TTF2PT1 provides tools to convert most TrueType fonts (or other formats supported by the FreeType library) to an Adobe Type 1 @file{.pfa} or @file{.pfb} file. Another use is as a hinting engine: feed it an unhinted or poorly hinted Adobe Type 1 font through the FreeType library and get it back with freshly generated hints. The files produced by default are in human-readable form, which further needs to be encoded with t1utilities to work with most software requiring Type 1 fonts.") (home-page "https://ttf2pt1.sourceforge.net/") (license license:bsd-3))) (define-public woff2 (package (name "woff2") (version "1.0.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/google/woff2") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "13l4g536h0pr84ww4wxs2za439s0xp1va55g6l478rfbb1spp44y")))) (build-system cmake-build-system) (outputs '("out" "bin")) (arguments `(#:tests? #f ;no test suite #:configure-flags (list (string-append "-DCMAKE_INSTALL_BINDIR=" (assoc-ref %outputs "bin") "/bin") (string-append "-DCMAKE_INSTALL_INCLUDEDIR=" (assoc-ref %outputs "out") "/include") (string-append "-DCMAKE_INSTALL_LIBDIR=" (assoc-ref %outputs "out") "/lib")) #:phases (modify-phases %standard-phases ;; To install both binaries and libraries. (add-after 'unpack 'patch-installation (lambda _ (substitute* "CMakeLists.txt" (("NOT BUILD_SHARED_LIBS") "BUILD_SHARED_LIBS"))))))) (native-inputs (list pkg-config)) (propagated-inputs (list brotli)) ;libwoff2dec.pc requires libbrotlidec (synopsis "Libraries and tools for WOFF2 font format") (description "WOFF2 provides libraries and tools to handle the Web Open Font Format (WOFF).") (home-page "https://w3c.github.io/woff/woff2/") (license license:expat))) (define-public fontconfig (hidden-package (package (name "fontconfig-minimal") (version "2.14.0") (source (origin (method url-fetch) (uri (string-append "https://www.freedesktop.org/software/" "fontconfig/release/fontconfig-" version ".tar.xz")) (sha256 (base32 "1b4v1r94ri44p4a3kbwd38ig5jgdgcfgwdfm6fqzvfvlki6bignw")) (patches (search-patches "fontconfig-cache-ignore-mtime.patch")))) (build-system gnu-build-system) ;; In Requires or Requires.private of fontconfig.pc. (propagated-inputs `(("expat" ,expat) ("freetype" ,freetype) ("libuuid" ,util-linux "lib"))) (inputs ;; We use to use 'font-ghostscript' but they are not recognized by newer ;; versions of Pango, causing many applications to fail to find fonts ;; otherwise. (list font-dejavu)) (native-inputs `(("gperf" ,gperf) ("pkg-config" ,pkg-config) ("python" ,python-minimal))) ;to avoid a cycle through tk (arguments `(#:configure-flags (list "--disable-docs" "--with-cache-dir=/var/cache/fontconfig" ;; register the default fonts (string-append "--with-default-fonts=" (assoc-ref %build-inputs "font-dejavu") "/share/fonts")) #:phases (modify-phases %standard-phases (add-before 'check 'skip-problematic-tests (lambda _ ;; SOURCE_DATE_EPOCH doesn't make sense when ignoring mtime (unsetenv "SOURCE_DATE_EPOCH") (substitute* "test/run-test.sh" ;; The crbug1004254 test attempts to fetch fonts from the ;; network. (("\\[ -x \"\\$BUILDTESTDIR\"/test-crbug1004254 \\]") "false")))) (replace 'install (lambda _ ;; Don't try to create /var/cache/fontconfig. (invoke "make" "install" "fc_cachedir=$(TMPDIR)" "RUN_FC_CACHE_TEST=false")))))) (synopsis "Library for configuring and customizing font access") (description "Fontconfig can discover new fonts when installed automatically; perform font name substitution, so that appropriate alternative fonts can be selected if fonts are missing; identify the set of fonts required to completely cover a set of languages; have GUI configuration tools built as it uses an XML-based configuration file; efficiently and quickly find needed fonts among the set of installed fonts; be used in concert with the X Render Extension and FreeType to implement high quality, anti-aliased and subpixel rendered text on a display.") ; The exact license is more X11-style than BSD-style. (license (license:non-copyleft "file://COPYING" "See COPYING in the distribution.")) (native-search-paths ;; Since version 2.13.94, fontconfig knows to find fonts from ;; XDG_DATA_DIRS. (list (search-path-specification (variable "XDG_DATA_DIRS") (files '("share"))))) (home-page "https://www.freedesktop.org/wiki/Software/fontconfig")))) ;;; The documentation of fontconfig is built in a separate package, as it ;;; causes a dramatic increase in the size of the closure of fontconfig. This ;;; is intentionally named 'fontconfig', as it's intended as the user-facing ;;; fontconfig package. (define-public fontconfig-with-documentation (package (inherit fontconfig) (name "fontconfig") (outputs (cons "doc" (package-outputs fontconfig))) (arguments (substitute-keyword-arguments (package-arguments fontconfig) ((#:configure-flags configure-flags) `(delete "--disable-docs" ,configure-flags)) ((#:phases phases '%standard-phases) `(modify-phases ,phases (add-after 'unpack 'no-pdf-doc (lambda _ ;; Don't build documentation as PDF. (substitute* "doc/Makefile.in" (("^PDF_FILES = .*") "PDF_FILES =\n")))) (add-after 'install 'move-man-sections (lambda* (#:key outputs #:allow-other-keys) ;; Move share/man/man{3,5} to the "doc" output. Leave "man1" in ;; "out" for convenience. (let ((out (assoc-ref outputs "out")) (doc (assoc-ref outputs "doc"))) (for-each (lambda (section) (let ((source (string-append out "/share/man/" section)) (target (string-append doc "/share/man/" section))) (copy-recursively source target) (delete-file-recursively source))) '("man3" "man5"))))))))) (native-inputs (append (package-native-inputs fontconfig) `(("docbook-utils" ,docbook-utils)))) (properties (alist-delete 'hidden? (package-properties fontconfig))))) (define-public t1lib (package (name "t1lib") (version "5.1.2") (source (origin (method url-fetch) (uri (list (string-append "ftp://sunsite.unc.edu/pub/Linux/libs/" "graphics/" name "-" version ".tar.gz") (string-append "https://fossies.org/linux/misc/old/" name "-" version ".tar.gz"))) (sha256 (base32 "0nbvjpnmcznib1nlgg8xckrmsw3haa154byds2h90y2g0nsjh4w2")) (patches (search-patches "t1lib-CVE-2010-2642.patch" ; 2011-0443, 2011-5244 "t1lib-CVE-2011-0764.patch" "t1lib-CVE-2011-1552+.patch")))) ; 2011-1553, 2011-1554 (properties `((lint-hidden-cve . ("CVE-2011-0433" "CVE-2011-1553" "CVE-2011-1554" "CVE-2011-5244")))) (build-system gnu-build-system) (arguments ;; Making the documentation requires latex, but t1lib is also an input ;; for building texlive. `(#:tests? #f ; no test target #:make-flags '("without_doc"))) (synopsis "Library for generating bitmaps from Type 1 fonts") (description "T1lib is a library for generating/rasterising bitmaps from Type 1 fonts. It is based on the code of the X11 rasteriser of the X11 project. The bitmaps created by t1lib are returned in a data structure with type GLYPH. This special GLYPH-type is also used in the X11 window system to describe character bitmaps. It contains the bitmap data as well as some metric information. But t1lib is in itself entirely independent of the X11-system or any other graphical user interface.") (license license:gpl2) (home-page "https://www.t1lib.org/"))) (define-public teckit (package (name "teckit") (version "2.5.10") ; signed by key 0xC9183BEA0288CDEE (source (origin (method url-fetch) (uri (string-append "https://github.com/silnrsi/teckit/releases/" "download/v" version "/teckit-" version ".tar.gz")) (sha256 (base32 "12qnf8nhxyr4d5pc01s3vc6h726506957an4vvmmfz633cqi5796")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--disable-static"))) (inputs (list zlib expat)) (native-inputs (list perl)) ;for the tests (synopsis "Toolkit for encoding conversions") (description "TECkit is a low-level toolkit intended to be used by other applications that need to perform encoding conversions (e.g., when importing legacy data into a Unicode-based application). The primary component of the TECkit package is therefore a library that performs conversions; this is the \"TECkit engine\". The engine relies on mapping tables in a specific binary format (for which documentation is available); there is a compiler that creates such tables from a human-readable mapping description (a simple text file). To facilitate the development and testing of mapping tables for TECkit, several applications are also included in the current package; these include simple tools for applying conversions to plain-text and Standard Format files, as well as both command-line and simple GUI versions of the TECkit compiler. However, it is not intended that these tools will be the primary means by which end users perform conversions, and they have not been designed, tested, and debugged to the extent that general-purpose applications should be.") (license license:lgpl2.1+) (home-page "https://scripts.sil.org/cms/scripts/page.php?cat_id=teckit"))) (define-public graphite2 (package (name "graphite2") (version "1.3.13") (source (origin (method url-fetch) (uri (string-append "https://github.com/silnrsi/graphite/releases/" "download/" version "/" name "-" version ".tgz")) (sha256 (base32 "01jzhwnj1c3d68dmw15jdxly0hwkmd8ja4kw755rbkykn1ly2qyx")))) (build-system cmake-build-system) (native-inputs (list python python-fonttools-minimal)) (inputs (list freetype)) (arguments (if (system-hurd?) (list #:phases #~(modify-phases %standard-phases (replace 'check ;; cmake-build-system ignores #:make-flags for make check (lambda* (#:key test-target tests? parallel-tests? #:allow-other-keys) (if tests? (let ((jobs (if parallel-tests? (number->string (parallel-job-count)) "1"))) (invoke "make" (string-append "ARGS=-j " jobs " --exclude-regex ^awamicmp3$") test-target)) (format #t "test suite not run~%")))))) '())) (synopsis "Reimplementation of the SIL Graphite text processing engine") (description "Graphite2 is a reimplementation of the SIL Graphite text processing engine. Graphite is a smart font technology designed to facilitate the process known as shaping. This process takes an input Unicode text string and returns a sequence of positioned glyphids from the font.") (license license:lgpl2.1+) (home-page "https://github.com/silnrsi/graphite"))) (define-public potrace (package (name "potrace") (version "1.16") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/potrace/" version "/potrace-" version ".tar.gz")) (sha256 (base32 "1k3sxgjqq0jnpk9xxys05q32sl5hbf1lbk1gmfxcrmpdgnhli0my")))) (build-system gnu-build-system) (native-inputs (list ghostscript)) ;for tests (inputs (list zlib)) (arguments `(#:configure-flags `("--with-libpotrace"))) ; install library and headers (synopsis "Transform bitmaps into vector graphics") (description "Potrace is a tool for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP format), and the default output is an encapsulated PostScript file (EPS). A typical use is to create EPS files from scanned data, such as company or university logos, handwritten notes, etc. The resulting image is not \"jaggy\" like a bitmap, but smooth. It can then be rendered at any resolution.") (license license:gpl2+) (home-page "https://potrace.sourceforge.net/"))) (define-public psftools (package (name "psftools") (version "1.1.1") (source (origin (method url-fetch) (uri (string-append "https://www.seasip.info/Unix/PSF/" "psftools-" version ".tar.gz")) (sha256 (base32 "1lv6kvrcbspyh7a0hlji84wbmw6xh87r3iaafq3khp88kgh1irri")))) (build-system gnu-build-system) (arguments (list #:configure-flags #~(list "--disable-static"))) (home-page "https://www.seasip.info/Unix/PSF/") (synopsis "Convert PSF fixed-width bitmap (console) fonts from/to other formats") (description "@acronym{PSF, PC Screen Font} is the simple monospaced bitmap font format used by the Linux kernel for console fonts. The PSF Tools convert between PSF and many other font formats, similar to what the NetPBM package does for images. It includes converters for a good number of common bitmap font formats such as @file{.BDF}, @file{.FNT}, and @file{.FON} files, Berkeley vfonts, classic Amstrad/Sinclair/Hercules/BBC Micro soft fonts, and raw (DOS-style) fonts. It also supports less traditional formats such as PBM/XBM images, plain text (for rudimentary editing), and C header files.") (license license:gpl2+))) (define-public libotf (package (name "libotf") (version "0.9.16") (source (origin (method url-fetch) (uri (string-append "mirror://savannah/m17n/libotf-" version ".tar.gz")) (sha256 (base32 "0sq6g3xaxw388akws6qrllp3kp2sxgk2dv4j79k6mm52rnihrnv8")))) (build-system gnu-build-system) (native-inputs (list pkg-config)) (propagated-inputs (list freetype)) (home-page "https://www.nongnu.org/m17n/") (synopsis "Library for handling OpenType Font") (description "This library can read Open Type Layout Tables from an OTF file. Currently these tables are supported; head, name, cmap, GDEF, GSUB, and GPOS. It can convert a Unicode character sequence to a glyph code sequence by using the above tables.") (license license:lgpl2.0+))) (define-public libspiro (package (name "libspiro") (version "20200505") (source (origin (method url-fetch) (uri (string-append "https://github.com/fontforge/libspiro/releases" "/download/" version "/libspiro-dist-" version ".tar.gz")) (sha256 (base32 "0j8fmyj4wz6mqk17dqs6f8jx0i52n68gv5px17qbrjnbilg9mih6")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--disable-static"))) (synopsis "Clothoid to bezier conversion library") (description "Raph Levien's Spiro package as a library. A mechanism for drawing smooth contours with constant curvature at the spline joins.") (license license:gpl2+) (home-page "https://libspiro.sourceforge.net/"))) (define-public libuninameslist (package (name "libuninameslist") (version "20200313") (home-page "https://github.com/fontforge/libuninameslist") (source (origin (method url-fetch) (uri (string-append home-page "/releases/download/" version "/libuninameslist-dist-" version ".tar.gz")) (sha256 (base32 "10ri80c64xb4rhbif3sr87y5vhi3m702zb0m02imvj1jib9rq0m8")))) (build-system gnu-build-system) (synopsis "Unicode names and annotation list") (description "LibUniNamesList holds www.unicode.org Nameslist.txt data which can be useful for programs that need Unicode \"Names\", \"Annotations\", and block definitions.") ;; COPYING specifies GPL2, but according to LICENSE it only covers the ;; configure script. The actual code is BSD-3, and the Unicode data ;; is governed by an X11-style license only found on the web. (license (list license:bsd-3 (license:x11-style "https://www.unicode.org/copyright.html#License"))))) (define-public fontforge (package (name "fontforge") (version "20220308") (source (origin (method url-fetch) (uri (string-append "https://github.com/fontforge/fontforge/releases/download/" version "/fontforge-" version ".tar.xz")) (sha256 (base32 "0ncfc4ajwy4ng6b6h79w52jh9z3lngvf3f3ldi1wzkhcg9zh3r01")))) (build-system cmake-build-system) (native-inputs (list pkg-config)) (inputs (list cairo bash-minimal fontconfig ;dlopen'd freetype gettext-minimal libice libsm libx11 libxi libjpeg-turbo libltdl libpng libspiro libtiff libungif libxft libxml2 pango potrace python zlib)) (arguments (list #:configure-flags #~'( ;; TODO: Provide GTK+ for the Wayland-friendly GDK ;; backend, instead of the legacy X11 backend. ;; Currently it introduces a circular dependency. "-DENABLE_X11=ON") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'do-not-override-RPATH (lambda _ ;; Do not attempt to set a default RPATH, as our ld-wrapper ;; already does the right thing. (substitute* "CMakeLists.txt" (("^set_default_rpath\\(\\)") "")))) #$@(if (target-hurd?) #~((add-after 'unpack 'apply-hurd-patch (lambda _ (let ((patch-file #$(local-file (search-patch "fontforge-hurd.patch")))) (invoke "patch" "--force" "-p1" "-i" patch-file))))) #~()) #$@(if (system-hurd?) #~((replace 'check ;; cmake-build-system ignores #:make-flags for make check (lambda* (#:key test-target tests? parallel-tests? #:allow-other-keys) (let ((skip '("test0001_py" "test0001_pyhook"))) (if tests? (let ((jobs (if parallel-tests? (number->string (parallel-job-count)) "1"))) (invoke "make" (string-append "ARGS=-j " jobs " --exclude-regex ^" (string-join skip "\\|") "$") test-target)) (format #t "test suite not run~%")))))) #~()) (add-after 'install 'set-library-path (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (potrace (dirname (search-input-file inputs "bin/potrace")))) (wrap-program (string-append out "/bin/fontforge") ;; Fontforge dynamically opens libraries. `("LD_LIBRARY_PATH" ":" prefix ,(map (lambda (input) (string-append (assoc-ref inputs input) "/lib")) '("libtiff" "libjpeg-turbo" "libpng" "libungif" "libxml2" "zlib" "libspiro" "freetype" "pango" "cairo" "fontconfig-minimal"))) ;; Checks for potrace program at runtime `("PATH" ":" prefix (,potrace))))))))) (synopsis "Outline font editor") (description "FontForge allows you to create and modify postscript, truetype and opentype fonts. You can save fonts in many different outline formats, and generate bitmaps.") (license license:gpl3+) (home-page "https://fontforge.github.io"))) (define-public python-statmake (package (name "python-statmake") (version "0.6.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/daltonmaag/statmake") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1k6fkzyhsfkgi599sb017wzf4jzbnp5wjg1kla1b33vgjpa7n5nw")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; The code no longer raises <class 'ValueError'> '(list "-k" "not test_load_stylespace_broken_range") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'adjust-for-older-attrs ;; Our older attrs package is using the 'attr' rather than 'attrs' ;; namespace. ;; TODO: Remove after python-attrs is updated to >= 21.4.0. (lambda _ (substitute* "pyproject.toml" (("attrs = \">=21.3\"") "attrs = \">=21.2\"") (("cattrs = \">=22.2\"") "cattrs = \">=22.1\"")) (substitute* (find-files "." "\\.py$") (("from attrs\\b") "from attr") (("import attrs") "import attr") (("@attrs") "@attr") (("\\battrs\\.") "attr."))))))) (native-inputs (list python-poetry-core python-pytest python-ufo2ft)) (propagated-inputs (list python-attrs python-cattrs python-fonttools)) (home-page "https://github.com/daltonmaag/statmake") (synopsis "Apply OpenType STAT information to a variable font") (description "@command{statmake} takes a user-written Stylespace that defines @url{https://docs.microsoft.com/en-us/typography/opentype/spec/stat, OpenType STAT information} for an entire font family and then (potentially subsets and) applies it to a specific variable font. This spares users from having to deal with @url{https://github.com/fonttools/fonttools/, raw TTX dumps} and juggling with @samp{nameIDs}.") (license license:expat))) (define-public python-ufolib2 (package (name "python-ufolib2") (version "0.13.1") (source (origin (method url-fetch) (uri (pypi-uri "ufoLib2" version)) (sha256 (base32 "0yx4i8q5rfyqhr2fj70a7z1bp1jv7bdlr64ww9z4nv9ycbda4x9j")))) (build-system pyproject-build-system) (native-inputs (list python-pytest python-setuptools python-setuptools-scm python-wheel)) (propagated-inputs (list python-attrs python-fonttools)) (home-page "https://github.com/fonttools/ufoLib2") (synopsis "Unified Font Object (UFO) font processing library") (description "The ufoLib2 Python library is meant to be a thin representation of the Unified Font Object (UFO) version 3 data model, intended for programmatic manipulation and fast batch processing of UFOs. It resembles the defcon library, but does without notifications, the layout engine and other support classes. Where useful and possible, ufoLib2 tries to be API-compatible with defcon.") (license license:asl2.0))) ;;; A variant used to break a cycle between python-fontpens and ;;; python-fontparts. (define-public python-defcon-bootstrap (package (name "python-defcon-bootstrap") (version "0.10.3") (source (origin (method url-fetch) (uri (pypi-uri "defcon" version ".zip")) (sha256 (base32 "036clkwjfv5mmvy6s67s0pbni73n9hdw32z20gm4w5jzqzbjdpjn")))) (build-system python-build-system) (propagated-inputs (list python-fontpens-bootstrap python-fonttools)) (native-inputs (list python-pytest python-pytest-runner python-setuptools-scm unzip)) (home-page "https://github.com/robotools/defcon") (synopsis "Flexible objects for representing @acronym{UFO, unified font object} data") (description "Defcon is a set of @acronym{UFO, unified font object} based objects optimized for use in font editing applications. The objects are built to be lightweight, fast and flexible. The objects are very bare-bones and they are not meant to be end-all, be-all objects. Rather, they are meant to provide base functionality so that you can focus on your application’s behavior, not object observing or maintaining cached data. Defcon implements UFO3 as described by the UFO font format.") (license license:expat))) (define-public python-defcon (hidden-package (package/inherit python-defcon-bootstrap (name "python-defcon") (propagated-inputs (modify-inputs (package-propagated-inputs python-defcon-bootstrap) (replace "python-fontpens-bootstrap" python-fontpens)))))) (define-public nototools (package (name "nototools") (version "0.2.16") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/googlefonts/nototools") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "14rrdamkmhrykff8ln07fq9cm8zwj3k113lzwjcy0lgz23g51jyl")))) (build-system python-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-before 'build 'pretend-version (lambda _ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (with-directory-excursion "tests" (invoke "./run_tests"))))))) (native-inputs (list python-setuptools-scm)) (propagated-inputs (list python-afdko)) (home-page "https://github.com/googlei18n/nototools") (synopsis "Noto fonts support tools and scripts") (description "Nototools is a Python package containing Python scripts used to maintain the Noto Fonts project.") (license (list license:asl2.0 ;; Sample texts are attributed to UN and OHCHR. ;; The permissions on the UDHR are pretty lax: ;; http://www.ohchr.org/EN/UDHR/Pages/Introduction.aspx ;; "If UDHR translations or materials are reproduced, users ;; should make reference to this website as a source by ;; providing a link." license:public-domain (license:non-copyleft "file://sample_texts/attributions.txt" "See sample_texts/attributions.txt in the distribution."))))) (define-public fcft (package (name "fcft") (version "3.1.9") (home-page "https://codeberg.org/dnkl/fcft") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0j127fk5v2nlk5s0gibympcnzjyzfk5dwgz524gvlczfh7cbm18g")))) (build-system meson-build-system) (native-inputs (list check pkg-config scdoc)) (propagated-inputs (list ;; Required by fcft.pc. utf8proc fontconfig freetype harfbuzz pixman tllist)) (synopsis "Font loading and glyph rasterization library") (description "@code{fcft} is a small font loading and glyph rasterization library built on-top of FontConfig, FreeType2 and pixman. It can load and cache fonts from a fontconfig-formatted name string, e.g. @code{Monospace:size=12}, optionally with user configured fallback fonts. After a font has been loaded, you can rasterize glyphs. When doing so, the primary font is first considered. If it does not have the requested glyph, the user configured fallback fonts (if any) are considered. If none of the user configured fallback fonts has the requested glyph, the FontConfig generated list of fallback fonts are checked.") ;; The code is distributed under the Expat license, but embeds Unicode ;; data files carrying the Unicode license. (license (list license:expat license:unicode)))) (define-public fontmanager (package (name "fontmanager") (version "0.8.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/FontManager/font-manager") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0nyda2a6vbzyz4sn9mmrr8bkifzxmmjp7x9a3c4s6n925ccy79cn")))) (build-system meson-build-system) (arguments `(#:glib-or-gtk? #t #:build-type "release" #:configure-flags (list (string-append "-Dc_link_args=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib/font-manager")))) (native-inputs `(("desktop-file-utils" ,desktop-file-utils) ("gettext" ,gettext-minimal) ("glib" ,glib "bin") ("gobject-introspection" ,gobject-introspection) ("pkg-config" ,pkg-config) ("python-wrapper" ,python-wrapper) ("vala" ,vala-0.52) ("yelp-tools" ,yelp-tools))) (inputs `(("fonconfig" ,fontconfig) ("freetype" ,freetype) ("gsettings-desktop-schemas" ,gsettings-desktop-schemas) ("gtk+" ,gtk+) ("json-glib" ,json-glib) ("libsoup" ,libsoup-minimal-2) ("sqlite" ,sqlite) ("webkitgtk" ,webkitgtk-with-libsoup2))) (home-page "https://fontmanager.github.io/") (synopsis "Simple font management for GTK+ desktop environments") (description "Font Manager is intended to provide a way for users to easily manage desktop fonts, without having to resort to command-line tools or editing configuration files by hand. While designed primarily with the GNOME Desktop Environment in mind, it should work well with other GTK+ desktop environments.") (license license:gpl3+))) (define-public fntsample (package (name "fntsample") (version "5.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/eugmes/fntsample") (commit (string-append "release/" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0pcqqdriv6hq64zrqd9vhdd9p2vhimjnajcxdz10qnqgrkmm751v")))) (build-system cmake-build-system) (arguments `(#:tests? #f ; There are no tests. #:configure-flags (list (string-append "-DUNICODE_BLOCKS=" (assoc-ref %build-inputs "unicode-blocks"))) #:phases (modify-phases %standard-phases (add-after 'install 'set-library-path (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (pdf-api2 (assoc-ref inputs "perl-pdf-api2")) (intl (assoc-ref inputs "perl-libintl-perl")) (perllib (string-append pdf-api2 "/lib/perl5/site_perl/" ,(package-version perl) ":" intl "/lib/perl5/site_perl/" ,(package-version perl)))) (wrap-program (string-append out "/bin/pdfoutline") `("PERL5LIB" ":" prefix (,perllib))))))))) (native-inputs `(("pkg-config" ,pkg-config) ("gettext" ,gettext-minimal))) (inputs `(("cairo" ,cairo) ("bash-minimal", bash-minimal) ("fontconfig" ,fontconfig) ("freetype" ,freetype) ("glib" ,glib) ("pango" ,pango) ("perl-pdf-api2" ,perl-pdf-api2) ("perl-libintl-perl" ,perl-libintl-perl) ("unicode-blocks" ,(let ((version "14.0.0")) (origin (method url-fetch) (uri (string-append "https://unicode.org/Public/" version "/ucd/Blocks.txt")) (file-name (string-append "unicode-blocks-" version ".txt")) (sha256 (base32 "05vzgrvfp35mgxjgkm4wnxjjgzva8n6545i9jxd4pczpvvfp122r"))))))) (home-page "https://github.com/eugmes/fntsample") (synopsis "PDF and PostScript font samples generator") (description "This package provides a tool that can be used to make font samples that show coverage of the font and are similar in appearance to Unicode Charts. It was developed for use with DejaVu Fonts project.") (license license:gpl3+))) (define-public libraqm (package (name "libraqm") (version "0.10.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/HOST-Oman/libraqm") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1bzdrvacgj9629r4mgmag9sm5ay5914fbs8pnxf8xphvrbnbxm8z")))) (build-system meson-build-system) (native-inputs (list gtk-doc/stable pkg-config python-wrapper)) (inputs (list freetype fribidi harfbuzz)) (home-page "https://github.com/HOST-Oman/libraqm") (synopsis "Library for complex text layout") (description "Raqm is a small library that encapsulates the logic for complex text layout and provides a convenient API. It currently provides bidirectional text support (using FriBiDi), shaping (using HarfBuzz), and proper script itemization. As a result, Raqm can support most writing systems covered by Unicode.") (license license:expat))) (define-public fontopia (package (name "fontopia") (version "2.0") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/fontopia/fontopia-" version ".tar.gz")) (sha256 (base32 "0wv7bd7gdm1ma4xgq9av73ic3xhpwyszj6g6c6311xjk26xm9ahd")))) (build-system gnu-build-system) (inputs (list gnudos)) (home-page "https://www.gnu.org/software/fontopia/") (synopsis "Text-based, console font editor") (description "GNU fontopia is an easy-to-use, text-based, console font editor. You can edit the fonts that your GNU/Linux kernel is using to display your text on text- based (vs graphical) terminals.") (license license:gpl3+))) (define-public lcdf-typetools (package (name "lcdf-typetools") (version "2.108") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/kohler/lcdf-typetools") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0a6jqaqwq43ldjjjlnsh6mczs2la9363qav7v9fyrfzkfj8kw9ad")))) (build-system gnu-build-system) (arguments `(#:configure-flags ;; This is only provided by the monolithic texlive distribution. ;; FIXME: texlive-kpathsea doesn't come with the library and headers (list "--without-kpathsea"))) (native-inputs (list autoconf automake)) (home-page "https://lcdf.org/type/") (synopsis "Multiple font manipulation tools") (description "LCDF Typetools comprises several programs for manipulating PostScript Type 1, Type 1 Multiple Master, OpenType, and TrueType fonts. These tools are cfftot1, mmafm, mmpfb, otfinfo, otftotfm, t1dotlessj, t1lint, t1rawfm, t1reencode, t1testpage and ttftotype42.") (license license:gpl2+))) (define-public bdf2sfd (package (name "bdf2sfd") (version "1.1.8") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/fcambus/bdf2sfd") (commit "1.1.8"))) (file-name (git-file-name name version)) (sha256 (base32 "0pa92gjiijp9xqnw9dcvz24s6qk11a4lp5q6s5psd6mpkhpd88zq")))) (build-system cmake-build-system) (home-page "https://github.com/fcambus/bdf2sfd") (synopsis "BDF to SFD converter, allowing to vectorize bitmap fonts") (description "bdf2sfd is a @uref{https://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format, BDF} to @uref{https://fontforge.org/docs/techref/sfdformat.html, SFD} converter, allowing to vectorize bitmap fonts. It works by converting each pixel of a glyph to a polygon, which produces large and unoptimized SFD files that should be post-processed using @uref{https://fontforge.org, FontForge}.") (license license:bsd-2)))