ReadRoberts
c118bd205e
varLib. Move CFF2CharStringMergePen-specific logic out of specializer.py
...
- restore specializer.py:commandsToProgram to original simple code
- handle blend arguments in command list with CFF2CharStringMergePen method.
2018-11-19 17:30:53 -08:00
ReadRoberts
a460eee80b
varLib. Add support for building CFF2 variable font
...
Fix syntax error reported by build system: can't mix string string types when doing literal concatenation
Fix local import reference - doesn't work in Python3.
Addressed issues raised by @msousa for PR 1345 yesterday.
Will change cff2_merge_funcs.py and cff2mergePen.py from tab to space indentations after the current comments are resolved.
Add various improvements from comments:
- do not edit the post table under varLib.build(). Setting post table format 2 or 3 is now expected to be managed by whatever calls varLib.build().
- In the t2CharStringPen module, rename closure _round() nested in makeRoundFunc to an exportable function, and use it in cff2mergePen.
- remove TypeSupply copyright from cff2mergePen.
- use modulo function to convert float to int when it is meant to be 0 in cff2mergePen.
cff2_merge_funcs.py:merge_PrivateDicts() should only be blending the hint related fields in the PrivateDict. This oversight that was surfaced by @madig reporting an error building his Cantrell font. The bug appeared when the font was subroutinized, as the pen draw method then has to interpret the Subr field in order to access T2Charstring subroutines.
Fix expected ttx output file. When I removed the logic to add glyph names to the post table, glyph names in the ttx file changed.
Miguel prefers a simple list for readability in cff2_merge_funs.py:138.
2018-11-12 11:38:18 -08:00
ReadRoberts
9de373455a
varLib. Add support for building CFF2 variable font with a call to varLib.build().
...
Add test for building CFF2 variable font with a call to varLib.build().
The 'dollar' glyph in the test font is deliberately slightly malformed, with flat curves, in order to exercise the code for dealing with some of the differences in masters designs that can arise from T2 charstring optimization.
2018-11-12 11:38:12 -08:00
ReadRoberts
5a32da5ee6
varLib. Add support for building CFF2 variable font with a call to varLib.build().
...
Fix specializer.py:commandToProgram(); I had made the required args incompatible with the prior version.
2018-11-12 11:38:04 -08:00
ReadRoberts
776295b3d0
varLib. Add support for building CFF2 variable font with a call to varLib.build().
...
Add call to _addCFF2 in varLib.build().
2018-11-12 11:37:57 -08:00
ReadRoberts
9626cfe15b
varLib. Add support for building CFF2 variable font with a call to varLib.build().
...
Add support functions for merging CFF tables into a CFF2 table.
2018-11-12 11:37:47 -08:00
ReadRoberts
08aef71458
varLib. Add support for building CFF2 variable font with a call to varLib.build().
...
Add support for the blend operator and arguments in commandsToProgram, and specializeCommands().
2018-11-12 11:37:40 -08:00
ReadRoberts
05b4d251f7
varLib. Add support for building CFF2 variable font with a call to varLib.build().
...
Fix bug in psCharStrings, to allow the CFF2Subr calls draw function to work
2018-11-12 11:37:23 -08:00
pyup-bot
7c65ffa0e9
Update fs from 2.1.1 to 2.1.2
2018-11-12 15:06:09 +00:00
justvanrossum
29cc726363
fix test expected data
2018-11-10 15:07:18 -05:00
justvanrossum
49b7333cf5
According to the spec, this number should be 0x00010000.
2018-11-10 15:07:18 -05:00
Behdad Esfahbod
5560b26a5d
[varLib] Avoid combinatorial explosion in featureVars
...
By merging duplicate regions.
Fixes https://github.com/fonttools/fonttools/issues/1370
2018-11-09 10:39:19 -05:00
Cosimo Lupo
b51fc5ab72
Merge pull request #1366 from justvanrossum/fix-1365
...
[varLib] Fixing #1365 : AttributeError in addFeatureVariations()
2018-11-08 09:55:54 +00:00
justvanrossum
e45117aa02
Fixed bug that tried to get an attr off a LangSysRecord rather than a LangSys. Fixes #1365
2018-11-08 10:04:25 +01:00
Cosimo Lupo
0331f668c0
Merge pull request #1358 from silnrsi/fixpy3
...
Fix python3 file writing issues and table compression
2018-11-06 11:44:47 +00:00
Martin Hosken
2cfc16a172
Remove redundant bug fix, add graphite dependencies
2018-11-06 15:21:32 +07:00
Behdad Esfahbod
76c85e3c3b
[subset] Fix --no-hinting --desubroutinize
...
Fixes https://github.com/fonttools/fonttools/issues/1360
2018-11-02 17:52:15 -04:00
justvanrossum
cc540c41e9
oops, removed leftover debug turd
2018-11-02 11:59:07 +01:00
Just van Rossum
2ed480b50b
Merge pull request #1357 from justvanrossum/fontbuilder-improvements
...
FontBuilder improvements
2018-11-02 11:48:25 +01:00
justvanrossum
0bfee639c6
test named instances
2018-11-02 08:02:56 +01:00
Martin Hosken
9739247a81
Fix python3 file writing issues and table compression
2018-11-02 11:21:58 +07:00
justvanrossum
8298169dfb
at least set these ascent/descent values in the example
2018-11-01 21:33:56 +01:00
justvanrossum
6e299a1bd5
set reasonable values for ascent and descent, test toy variation font
2018-11-01 21:33:08 +01:00
justvanrossum
beaf0432a9
added many docstrings, and added setupHorizontalMetrics and setupVerticalMetrics methods to replace setupMetrics
2018-11-01 20:30:21 +01:00
Cosimo Lupo
364a578c1d
.travis/run.sh: TOXENV variable may list multiple tox envs
2018-11-01 13:36:13 +00:00
Cosimo Lupo
7059296312
tox: 'twine check' already checks RST, don't need to do it again
2018-11-01 13:23:27 +00:00
Cosimo Lupo
532abbcaf6
travis: automatically check REAMDE+NEWS are valid reStructuredText
2018-11-01 13:22:04 +00:00
Cosimo Lupo
e0303ae412
README: fix rst syntax error...
2018-11-01 13:21:24 +00:00
Cosimo Lupo
39dd56f552
tox: add env to check package long_description using 'twine check' command
...
Restrucutred Text is very picky. 3.32.0 release process failed because of some broken rst.
I have to stop doing [skip ci] when I update the changelog... :(
2018-11-01 13:11:12 +00:00
Cosimo Lupo
3ac256012a
Bump version: 3.32.0 → 3.32.1.dev0
2018-11-01 12:58:53 +00:00
Cosimo Lupo
aa7d99080a
Release 3.32.0
2018-11-01 12:58:52 +00:00
Cosimo Lupo
e4e0375b4c
Update changelog [skip ci]
2018-11-01 12:57:37 +00:00
Just van Rossum
d0fd4b899c
Merge pull request #1354 from justvanrossum/fontbuilder
...
Merging FontBuilder class.
2018-11-01 13:50:00 +01:00
justvanrossum
25f29841b7
rename setupDSIG to setupDummyDSIG and added a doc string to clarify the legacy status of this
2018-11-01 13:19:27 +01:00
justvanrossum
8d2615e9c8
document the required setup method call order
2018-11-01 12:37:37 +01:00
justvanrossum
723afd626d
mark module as experimental
2018-11-01 12:32:17 +01:00
justvanrossum
3e051f582e
added a note about the order of setup method calls
2018-11-01 12:21:38 +01:00
justvanrossum
d10dc87527
test DSIG
2018-11-01 12:13:47 +01:00
justvanrossum
7a084bd016
added assert message, fixed DSIG issue
2018-11-01 12:13:35 +01:00
justvanrossum
a81bcbf8a2
remove redundant method call
2018-11-01 12:08:20 +01:00
justvanrossum
277c7da951
added __all__ module attr
2018-11-01 10:28:05 +01:00
justvanrossum
a259d31109
added module doc string with two examples
2018-11-01 10:19:51 +01:00
justvanrossum
cabce338c7
calculate glyph bounds implicitly (unless asked not to do that)
2018-11-01 10:17:07 +01:00
justvanrossum
cfd00ef3dd
don't need to specify keepGlyphNames, esp. if it matches defsult behavior
2018-11-01 09:57:35 +01:00
justvanrossum
19eac2e00a
test localized name table entries
2018-11-01 09:55:27 +01:00
justvanrossum
a442ce627d
work towards making name strings localizable
2018-11-01 09:52:06 +01:00
justvanrossum
3ebde1bda5
allow localized name table entries
2018-11-01 09:44:56 +01:00
justvanrossum
53d743f427
adjust expected test output: we no longer output mac names
2018-11-01 09:41:58 +01:00
justvanrossum
53761c5e03
use more existing name table logic
2018-11-01 09:40:54 +01:00
justvanrossum
0a6cbc0be0
use existing helper func
2018-11-01 09:36:37 +01:00