10930 Commits

Author SHA1 Message Date
justvanrossum
f713c93340 made warning even more specific 2016-11-26 14:05:23 +01:00
justvanrossum
7eff97e08b made warning more specific 2016-11-26 14:05:23 +01:00
justvanrossum
4a5c838b5b Improve the warnings issued when 'useless' FontDict key/value pairs are provided either by an OTF, or a TTX file; It now warns reliably in both those cases. 2016-11-26 14:05:23 +01:00
justvanrossum
ce73bba3f3 use log.warning() instead of log.log(logging.WARNING, ...) 2016-11-26 14:05:23 +01:00
justvanrossum
cce31c9950 Also warn when keys are ignored upon compile. 2016-11-26 14:05:23 +01:00
justvanrossum
8d22c39d0b Output an XML comment with the keys that were ignored; Added references to the other issues involved. 2016-11-26 14:05:23 +01:00
justvanrossum
f9d265d1e6 This commit fixes #740.
Commits 3063def and 5b47971 introduced a separate fontDictOperators list for FontDict, only listing those TopDict key/value pairs that are actually used in the FontDict context. It provided a fallback that TTX files containing such "useless" key/value pairs would not be rejected.

However, the code still rejected binary fonts that contained such values, even though it didn't before, and yes, such fonts exist. Also: such fonts are not broken per spec, they just contain some fields that otherwise no one ever looks at, so it's a little harsh to reject them.

This patch removes most of the special FontDict code, and uses everything from TopDict, *except* the order attribute: it sets that to a list of the relevant keys for the FontDict. The effect of this is that "useless" key/value pairs are ignored, not just upon reading XML, but also upon decompilation and compilation of binary fonts. It improves on the previous XML reading behavior in that it no longer silently ignores key typos in the TTX input.

Ideally, we would *output* everything that is actually in the FontDict to TTX, and only ignore the values when compiling, but I didn't find a clean solution for that, so I decided to just fix the issue.
2016-11-26 14:05:23 +01:00
moyogo
ea92dd75f1 appveyor: use setuptools==28.8.0 since 29.0.0 doesn’t install cli-{32,64}.exe and other binaries 2016-11-26 09:38:41 +00:00
Cosimo Lupo
400e8e8dd0
Bump version: 3.2.1 → 3.2.2 2016-11-24 17:19:58 +00:00
Cosimo Lupo
403d05d822
update changelog for 3.2.2 2016-11-24 17:19:36 +00:00
Cosimo Lupo
a4e4489b2b
README.rst: add 'PyPI Version' badge 2016-11-24 07:34:44 +00:00
Cosimo Lupo
43df1e6b1b
.travis.yml: use regex to also build on tags
apparently, Travis identifies tags as 'branches', thus we need to include any branch whose name resembles a release tag (e.g. 'v1.0'), or else those builds are skipped with an error message:

> Branch "1.1.0" not included per configuration
2016-11-24 07:27:20 +00:00
Cosimo Lupo
1236d2fb78 Merge pull request #58 from anthrotype/pypi-deploy
set up PyPI deployment on tags from Travis CI
2016-11-24 06:45:19 +00:00
Erik
9abd4beec1 Convenience method that returns font objects for all the existing sources in the document. Defaults to defcon font object, but you can BYO. 2016-11-22 22:47:34 +01:00
Just van Rossum
cae8916f06 Merge pull request #742 from mashabow/patch-1
Fix "Private Use (plane 15)" range
2016-11-21 07:05:38 +01:00
Masaya Nakamura
08a0d550db Fix "Private Use (plane 15)" range
https://twitter.com/ken_lunde/status/796564061206913024
https://www.microsoft.com/typography/otspec/errata.htm
2016-11-21 11:26:57 +09:00
Erik
5174dfb238 Tweaks in the read me. 2016-11-20 17:46:11 +01:00
Erik
733c4ea755 Smaller check. 2016-11-20 15:48:22 +01:00
Erik
079771dd76 Merge branch 'master' of https://github.com/LettError/designSpaceDocument
# Conflicts:
#	Lib/designSpaceDocument/__init__.py
2016-11-20 10:14:25 +01:00
Erik
8a0ad4bac8 - changed axis "labelName" element name to lowercase.
- actually also read the labelnames.
- added tests for axis data roundttrip
2016-11-20 10:05:55 +01:00
Erik van Blokland
fff6760d3e Merge pull request #1 from moyogo/patch1
Minor: whitespace, gitignore and py23 (print function and unicode_literals)
2016-11-18 11:23:38 +01:00
Denis Moyogo Jacquerye
90b2171ef2 gitignore: .DS_Store, __pycache__, *.py[co] and .cache 2016-11-18 10:08:21 +00:00
Denis Moyogo Jacquerye
050f5731b2 py23: unicode_literals 2016-11-15 20:17:57 +00:00
Denis Moyogo Jacquerye
a62918cb72 py23: print function 2016-11-15 20:16:48 +00:00
Denis Moyogo Jacquerye
6770d6a02f whitespace 2016-11-15 20:15:04 +00:00
Erik van Blokland
947e524a74 Update README.md 2016-11-15 16:35:01 +01:00
Erik van Blokland
e348a06e82 Update README.md 2016-11-15 16:27:46 +01:00
Erik van Blokland
3e8175569d Update README.md 2016-11-15 14:29:14 +01:00
Erik van Blokland
1bd59c3ef6 Update README.md 2016-11-15 14:25:19 +01:00
Erik
41f5cd7e5d more things to ignore. 2016-11-15 13:47:48 +01:00
Erik
2fbdd37362 Initial commit
- independent reader / writer object for designspace documents.
- imports and exports easy to subclass objects for instance, source and axis data.
- roundtrips
- intended to be compatible with use in MutatorMath, Superpolatpor and varlib.
2016-11-15 13:27:39 +01:00
Behdad Esfahbod
78d3cbea57 [subset] Fix subsetting MathVariants
Was failing on Caudex-Regular.ttf for example.
2016-11-11 10:58:02 -08:00
James Godfrey-Kittle
c66ba36b50 Merge pull request #59 from anthrotype/print-incompatible-glyphs
[ufo] print name of incompatible glyphs
2016-11-10 10:22:30 -08:00
Behdad Esfahbod
25083502e4 [perimeterPen] Update check for cusps
If p1 coincides with p0 or p2, we still can use the lineTo()
code.
2016-11-08 16:39:38 -08:00
Behdad Esfahbod
7915a45ddf [varLib] Handle fonts without GPOS
Fixes https://github.com/fonttools/fonttools/issues/699
2016-11-08 15:44:39 -08:00
Behdad Esfahbod
a11bc5655d [merge] Ignore LangSys if None
Fixes https://github.com/fonttools/fonttools/issues/739
for now, though proper fix is more complicated.

This was hit now because the subsetter was changed a while back
to retain script systems even if empty...  I don't like that.
2016-11-08 14:06:50 -08:00
Behdad Esfahbod
4868a631b9 [Snippets/interpolatable] Improve error reporting
Also enable full vector.  It's necessary for accurate report.
2016-11-07 20:30:57 -08:00
Cosimo Lupo
86207144ae Merge pull request #736 from robmck-ms/master
[varLib] Do not emit null axes in fvar (default==min==max)
2016-11-05 12:51:46 +00:00
Rob McKaughan
1bebcec00d Do not emit null axes in fvar (default==min==max) 2016-11-04 14:53:43 -07:00
Cosimo Lupo
6618095c36
ufo: raise custom IncompatibleGlyphsError exception with the name(s) of incompatible glyphs
Fixes https://github.com/googlei18n/cu2qu/issues/46
2016-11-04 15:30:40 +00:00
Cosimo Lupo
9b4e755219
MANIFEST.in: also include tox.ini and .coveragerc 2016-11-04 09:17:49 +00:00
Cosimo Lupo
1ee9f58608
.coveragerc: add coverage.py configuration file 2016-11-04 09:17:26 +00:00
Cosimo Lupo
d1bbdbbc90
Bump version: 1.0 -> 1.1.0 2016-11-03 19:13:47 +00:00
Cosimo Lupo
9b57baad2f
travis: set up PyPI deployment on tags; upload test coverage to Coveralls.io 2016-11-03 19:13:23 +00:00
Cosimo Lupo
a3d004dbfe
tox.ini: add Tox configuration file, with py27, py35, coverage and coveralls environments 2016-11-03 19:09:45 +00:00
Cosimo Lupo
0f59ce3730
setup.py: set fonttools & ufoLib as install_requires, add package metadata, pytest-runner and wheel support 2016-11-03 19:08:13 +00:00
Cosimo Lupo
4e4f058b12
add setup.cfg with packaging and test configuration 2016-11-03 19:03:32 +00:00
Cosimo Lupo
ccbd964e59
convert README.md to reStructuredText so it can be used for both Github and PyPI 2016-11-03 19:02:31 +00:00
Cosimo Lupo
ad90b06ec9
update .gitignore 2016-11-03 19:01:13 +00:00
Cosimo Lupo
85bbe112ce
ufo_benchmark: move defcon and robofab imports inside respective setup functions
otherwise, pytest test collection fails to import ufo_benchmark mode, as defcon/robofab are not specified as install requirements, thus may not be present when running the test suite.
2016-11-03 18:59:00 +00:00