84 Commits

Author SHA1 Message Date
Cosimo Lupo
ceb41ec484 WIP: implement conditionSets in designspaceLib.RuleDescriptor (#1255)
* [designspaceLib] WIP: add conditionSets to RuleDescriptor...

the BaseDocReader still needs to be updated to be able to read both
legacy condition-without-conditionset and new-style conditionset
elements.

* test_rules: replace rule.conditions with conditionSets

* Tests: update test.designspace to use conditionset; replace 'with' with 'byname' in sub element

I don't like too much that now 'byname' precedes alphabetically 'name'.
We need to see if ElementTree allows to sort attribute arbitrarily

* Change versionnumber to 4.0 - would that be enough, or should there be seperate major / minor fields?
If we bump the version up to numeral 4, I'd like the check for the with / byname attributes. We can read the old `byname` and only write the new `with`.
Remove support for `initial` in axis attributes.

* WIP - formatversion, with attribute,

* WIP
anything that is not version 4.0 is version 3.0
added some local paths to the test so I can see what it's generating. I can take this out later.

* WIP
read the conditionsets properly. This makes the tests fail no longer.

* WIP
disambiguate axis tags from axis names. Test axes are now called "axisName_x", tags are called "TAGX"

* WIP forgot to push

* WIP
Raise `DesignSpaceDocumentError` when no maximum or minimum are given in a condition.
Add test for such an incomplete rule.
Remove path cruft.

* WIP improved test of raised error.

* WIP because no bot.

* WIP more spaces around percents.

* WIP - don't skip empty subs, just load whatever is there.

* WIP do not permit empty axes in a location when evaluating a rule. Fix some tests.

* WIP missed a str(tempdir), some rule tests.

* WIP proposal for changes to the designspace spec to the `rule` and `sub` elements.

* WIP edits.

* WIP. Typo.
2018-05-14 11:29:48 +02:00
Cosimo Lupo
f82ef7a410
[Doc/designspaceLib] mention list of 'subs' in RuleDescriptor 2018-05-03 12:27:50 +01:00
Cosimo Lupo
23af3227b7
[Doc/designspaceLib] mark rule 'name' as optional 2018-05-03 11:51:18 +01:00
Cosimo Lupo
162ad1c842
Merge pull request #1254 from fonttools/designspacelib-conditionset-spec
designspaceLib: This adds conditionsets to the rule element.
2018-05-03 11:35:14 +01:00
Erik van Blokland
066a9c9061 This adds conditionsets to the rule element. 2018-04-29 12:23:19 +02:00
Erik van Blokland
1fededb376 Changed sourceDescriptor object attribute to layerName.
Changed non-standard axis name to all caps.
2018-04-28 13:01:25 +02:00
Erik van Blokland
1c6c35dc38 Change to designspace documentation: add layer attribute to the source element.
Add `layerName` attribute to the sourcedescriptor object
Read and write layerName.
Add a source layer test.
XXX this also disables the test_check() test for the moment because it generates odd results.
2018-04-27 13:24:11 +02:00
Jany Belluz
ede5de6fb0 [designspaceLib] Switch doc files for designspaceLib from CRLF to LF 2018-02-14 12:46:55 +00:00
Jany Belluz
483e1489b4 [designspaceLib] Add documentation for new attributes 2018-02-14 12:46:51 +00:00
Jany Belluz
a0a2dcb87f [designspaceLib] Freshen the documentation of designspaceLib 2018-02-14 12:46:47 +00:00
Jany Belluz
cfb2c0bb50 Move the documentation to Sphinx 2017-11-29 12:03:34 +00:00
Gustavo Ferreira
c826e5d88f adding Sphinx to dev-requirements.txt, restoring ttx man page 2017-04-24 10:42:42 -03:00
Gustavo Ferreira
9eae1bd2e0 setting up Sphinx-based autodocs 2017-04-21 19:47:28 -03:00
Cosimo Lupo
46fdd14bb1
[Doc] move man pages to Doc/man/man1 sub-folder
it's better to group man pages in a separate sub-folder in case we add alternative doc formats in the future, or if we add additional man pages.

This also allows to read man pages directly from the source tree, e.g. via `export MANPATH=Doc/man`, or `man -M Doc/man ttx`
2017-01-11 13:18:57 +00:00
Cosimo Lupo
dd5d442ea6 Revert "Remove old 'Doc/ttx.1'"
This reverts commit fe90e12601b9bea3983ddc1c0ec58303d14bbbe3.

Khaled commented:

> We either need to update the man page or find a way to generate it from other
existing documentation, not just drop it entirely with no replacement

fe90e12601 (commitcomment-18713586)
2016-08-20 11:30:18 +01:00
Cosimo Lupo
fe90e12601 Remove old 'Doc/ttx.1' man page as outdated, not working on Mac/Windows
The file contains outdated information and nobody is maintaining it any longer.
Plus it only works on Linux, and only if pip installing as sudo (which is bad!).

We need proper Sphinx+ReadTheDocs kind of documentation.
2016-08-19 12:27:09 +01:00
Dave Crossland
f439b55a1f Doc/changes.txt -> CHANGELOG.txt 2015-12-08 18:25:31 +00:00
Dave Crossland
1c3f3e6374 Update Doc/changes.txt: summarize last 2 releases 2015-12-08 18:25:11 +00:00
Dave Crossland
2340a9cfbd rm Doc/install.txt 2015-12-08 18:25:00 +00:00
Dave Crossland
67f7825883 Delete documentation.html 2015-09-09 14:48:09 -04:00
Cosimo Lupo
c67295d759 remove remaining references to fondLib in macUtils.py and install.txt
Fixes #319
2015-07-08 16:40:19 +01:00
Sascha Brawer
48cfcb076f Add ‘meta’ to the list of supported tables 2015-07-03 15:13:04 +02:00
Sascha Brawer
cd3c28ab2d [GX] Support 'avar' table 2015-06-20 00:13:01 +02:00
Sascha Brawer
2e6522c619 Re-generated table list now that ‘gvar’ is a supported table
Change was auto-generated by MetaTools/buildTableList.py
2015-06-12 22:25:14 +02:00
Sascha Brawer
dc8a66956a Support 'ltag' table for IETF BCP-47 language tags
Resolves #226
2015-04-14 17:50:42 -07:00
Behdad Esfahbod
b9ac90a8f9 [GX] Add 'fvar' table support
I might change the table format in the future, but it's functional now.
2015-03-11 15:29:35 -07:00
Behdad Esfahbod
730bedd3d1 [AAT] Add support for 'feat' table
Reusing the otData machinery.

See discussion at:
https://github.com/behdad/fonttools/issues/178
https://github.com/behdad/fonttools/pull/180
2014-09-30 19:04:16 -04:00
Cosimo Lupo
e386a1a408 update table's list through MetaTools/buildTableList.py 2014-08-13 19:51:47 +01:00
Denis Jacquerye
871495aff5 Add support for FontForge time stamp table
Fixes https://github.com/behdad/fonttools/issues/56
2013-12-08 19:32:21 -05:00
Behdad Esfahbod
98753abb91 Update table list for sbix 2013-12-06 19:55:29 -05:00
Paul Wise
0fff29aee5 Switched VCS from Subversion to git. 2013-11-19 00:37:29 +01:00
Behdad Esfahbod
562400ea10 Update table list for SVG 2013-08-29 16:15:14 -04:00
Behdad Esfahbod
50d9a44e58 Add support for Microsoft COLR/CPAL layered color glyphs 2013-08-19 14:16:06 -04:00
Matt Fontaine
b9ba775413 Add support for Google CBLC/CBDT color bitmaps 2013-08-19 14:15:58 -04:00
Matt Fontaine
c33b0a22ef Add support for standard EBLC/EBDT embedded bitmaps 2013-08-19 14:15:46 -04:00
pabs3
ec62dbe03e Release fonttools version 2.4
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@619 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-22 14:25:03 +00:00
pabs3
5f4193373b Writing to stdout is not actually implemented yet
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@615 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-22 06:47:34 +00:00
pabs3
fb37a24708 Implement writing output to arbitrary files including stdout.
Partially-fixes: http://sourceforge.net/p/fonttools/feature-requests/7/

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@614 4cde692c-a291-49d1-8350-778aa11640f8
2013-06-22 06:43:01 +00:00
pabs3
1344bc9b62 Fix typos: 'neccesary' should be 'necessary'.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@581 4cde692c-a291-49d1-8350-778aa11640f8
2010-01-09 09:12:11 +00:00
pabs3
e7689a4856 Release fonttools version 2.3
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@579 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:58:24 +00:00
pabs3
711afe95fc Add brief entries to Doc/changes.txt for the past two releases.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@574 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:52:26 +00:00
pabs3
b86bf2286a Drop version number from Doc/install.txt
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@573 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:51:41 +00:00
pabs3
6f22ca45ba Document the new -y option to choose which font in a TTC to decompile.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@571 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 11:19:51 +00:00
pabs3
005f59e389 Adapt Doc and MetaTools to the use of SVN instead of CVS
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@565 4cde692c-a291-49d1-8350-778aa11640f8
2009-03-22 15:32:29 +00:00
pabs3
ba31c60465 Update changelog
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@560 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-18 06:30:47 +00:00
pabs3
3697259346 Add cleaned-up and updated manual page from the Debian package.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@552 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-16 08:45:43 +00:00
jvr
3afe3817cb updated for numpy (this file needs a thorough review)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@540 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-04 15:42:38 +00:00
jvr
e45b2f1a0c updated change log
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@533 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 17:26:14 +00:00
jvr
4dd7a4cfbc see sf tracker
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@530 4cde692c-a291-49d1-8350-778aa11640f8
2008-03-01 17:03:35 +00:00
pabs3
e307d81d4b Update changelog
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@520 4cde692c-a291-49d1-8350-778aa11640f8
2008-01-28 07:11:06 +00:00