Erik
853500ecbd
Keep the fontMath import compatible with its ufo2 branch.
2016-11-30 16:38:13 +01:00
Erik
bc7ef7fac5
Remove some prints
...
Fix copyinfo.
2016-11-30 15:50:19 +01:00
Erik
0e51f99f37
First commit for DesignSpaceProcessor is a subclass of DesignSpaceDocument.
...
- aims to do work the same way as mutatorMath.ufo.document
- generate all instances as UFO
- handle glyph masters, info, kerning, lib
More testing is needed.
2016-11-30 14:45:41 +01:00
Cosimo Lupo
63621b347d
py23_test: in round2/round3, drop support for ndigit with __index__ attribute; add test for when a number is already an integer
2016-11-30 13:01:20 +00:00
Cosimo Lupo
f742ea07e8
py23: in round3, avoid rounding if number is already int; return the same type when called with two args
...
We only define 'round3' for PY2 and 'round2' for PY3, and also make sure 'round3' is always an alias of
the built-in 'round' on Python 3; and similarly 'round2' is an alias of built-in 'round' on Python 2.
Thus, for clarity, one can do:
from fontTools.misc.py23 import round3 as round
or
from fontTools.misc.py23 import round2 as round
and be certain that the fast built-in implementation will be used on the
respective python major version.
2016-11-30 12:58:58 +00:00
Cosimo Lupo
5de665fffe
Merge pull request #752 from fonttools/subset-non-bmp
...
[subset] workaround for "narrow" py2 builds and --text= option
2016-11-29 18:38:37 +00:00
Cosimo Lupo
16d0e5e8ad
subset: workaround for narrow py2 builds when iterating over non-BMP chars in unicode string
...
Fixes https://github.com/fonttools/fonttools/issues/750
2016-11-29 15:49:05 +00:00
Cosimo Lupo
99307e8991
subset_test: unit tests for subsetting non-BMP characters with --text/--text-file options
2016-11-29 15:45:07 +00:00
Cosimo Lupo
bcd4268442
subset/testdata: add a version of TestTTF-Regular.ttx containing an additional non-BMP character, U+1F6D2
2016-11-29 15:42:51 +00:00
justvanrossum
e5d2d49900
two more doctests
2016-11-29 14:42:20 +01:00
justvanrossum
8fa2ee1d95
Do the capping before calculating the normalized value to avoid ZeroDivisionError when default == lower or default == upper. Added doctests to verify. Fixes #749
2016-11-29 14:38:46 +01:00
Erik van Blokland
baac25990d
Merge pull request #2 from miguelsousa/patch-1
...
typo
2016-11-28 23:06:33 +01:00
Miguel Sousa
962a16fafa
typo
2016-11-28 14:00:32 -08:00
Erik
a854b170b6
- normalise the glyph instance location.
...
- normalise the glyph masters' location.
2016-11-28 22:29:14 +01:00
Erik
d1da75d3e3
Normalise the axis.map outputValues.
2016-11-28 17:18:36 +01:00
Erik
1b6ae36bab
Initial commit for a normalize() method.
...
- instance locations
- source locations
- axis extremes and default values.
todo:
axis.map values.
2016-11-28 17:12:46 +01:00
Parag Nemade
167ee6041e
Make inspect.py file compatible to run with python2 and python3 ( #748 )
...
Signed-off-by: Parag A Nemade <pnemade@fedoraproject.org>
2016-11-28 07:33:24 -06:00
Erik
324f6aa685
Add optional names, muted names.
2016-11-27 14:21:35 +01:00
Erik
a5d9e5a752
Remove initial attribute from axis example.
2016-11-27 14:13:01 +01:00
Erik
09f3c5b190
Merge branch 'master' of https://github.com/LettError/designSpaceDocument
2016-11-27 14:10:16 +01:00
Erik
dd63c50557
Adds scripting examples for instance glyph masters, axis mapping and label names.
2016-11-27 14:10:10 +01:00
Erik van Blokland
474e5d621f
Update README.md
2016-11-27 13:43:33 +01:00
Cosimo Lupo
fd77eff51e
Merge pull request #747 from moyogo/appveyor
...
appveyor: latest setuptools fixed
2016-11-27 10:17:36 +00:00
moyogo
c81d213a84
appveyor: latest setuptools fixed
2016-11-27 10:00:13 +00:00
Erik
43bdd74cda
Such a typo.
2016-11-26 15:31:27 +01:00
Erik
55efbaf322
Read me.
2016-11-26 14:58:53 +01:00
Erik
448dd36973
Add an example on scripting with designSpaceDocument.
2016-11-26 14:45:56 +01:00
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
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