4925 Commits

Author SHA1 Message Date
Cosimo Lupo
778d4933da
[ttGlyphPen_test] check ambiguous out-of-range case
that has both a value that exceeds the bounds, and one that's almost 2;
the former case should take precedence and the componed be decomposed
2018-03-01 18:01:01 +00:00
Cosimo Lupo
6a4ccd0e9f
[ttGlyphPen] check for out-of-range values before clamping 2018-03-01 18:00:41 +00:00
Denis Moyogo Jacquerye
85e363c216
Add TTGlyphPen test for scale limits 2018-03-01 17:48:49 +00:00
Denis Moyogo Jacquerye
098d9ecf6f
TTGlyphPen: handle scale limit
* decompose components with scale out of range [-2, 2)

* use closest F2Dot14 value when 0b1.11111111111111 < scale <= 2
2018-03-01 17:48:48 +00:00
Cosimo Lupo
c9308d2abc
NEWS.rst: minor markup
[skip ci]
2018-03-01 12:41:44 +00:00
Cosimo Lupo
927c181e4b
Update changelog
[skip ci]
2018-03-01 12:39:41 +00:00
Cosimo Lupo
1d020617d4
Merge pull request #1202 from fonttools/split-glyphs
[ttx] add option to dump glyf table's glyphs as individual ttx
2018-03-01 12:16:45 +00:00
Cosimo Lupo
f62bf05fb3
Merge pull request #1197 from chrissimpkins/checksum-script
[Snippets] SHA1 hash checksum list generation and testing script for font binaries and select OpenType table data
2018-03-01 11:58:47 +00:00
Cosimo Lupo
d46444acb4
[glyf] use . to separate glyph name from table tag in -g mode 2018-03-01 11:57:45 +00:00
Cosimo Lupo
cc2156b06e
Merge pull request #1169 from fonttools/cvXX-feature-support
[feaLib] Support params in character variant features (cvXX)
2018-03-01 11:48:34 +00:00
Cosimo Lupo
5c83b7483e
feaLib.parser: use class attributes for ss and cv tags; minor comment 2018-03-01 11:20:22 +00:00
Cosimo Lupo
3a41e70fd4
make 'location' optional for newly added cvXX elements 2018-03-01 10:39:17 +00:00
Miguel Sousa
7cefeadb3a
[feaLib] Improve feature tag sniffing
https://github.com/fonttools/fonttools/pull/1169#discussion_r170216680
2018-03-01 10:25:24 +00:00
Miguel Sousa
ce5cebfef2
[feaLib] Use tuple for dict key
https://github.com/fonttools/fonttools/pull/1169#discussion_r170218517
2018-03-01 10:25:24 +00:00
Miguel Sousa
6810f02528
[feaLib] Add TODOs for work needed on Lexer.NUMBER 2018-03-01 10:25:24 +00:00
Miguel Sousa
6ea8c184d9
[feaLib] Add test-fea2fea comments 2018-03-01 10:25:24 +00:00
Miguel Sousa
a7fcde030e
[feaLib] cvXX feature test 2018-03-01 10:25:23 +00:00
Miguel Sousa
f6bcea960d
[feaLib] asFea methods for statements in cvParameters 2018-03-01 10:25:23 +00:00
Miguel Sousa
d0fd2759d4
[feaLib] Build cvParameters block 2018-03-01 10:25:23 +00:00
Miguel Sousa
9c38b8a9d0
[feaLib] Method to parse 'name' records in cvXX features 2018-03-01 10:23:54 +00:00
Miguel Sousa
0667875538
[feaLib] Method to parse Character statements 2018-03-01 10:23:54 +00:00
Miguel Sousa
82c54f4601
[feaLib] Method to parse cvParameters block 2018-03-01 10:23:54 +00:00
Miguel Sousa
dbe4dce070
[feaLib] Special handle Character Variants features (cvXX) 2018-03-01 10:23:54 +00:00
Miguel Sousa
7bad066995
[feaLib] Simplify builder.add_featureName() 2018-03-01 10:22:09 +00:00
Miguel Sousa
a4c055c18a
[feaLib] Generalize FeatureNamesBlock 2018-03-01 10:22:09 +00:00
Cosimo Lupo
fd807bd70a
Merge pull request #1203 from anthrotype/absolute-include
[feaLib.lexer] pass included filename token to IncludedFeaNotFound
2018-02-28 19:52:05 +00:00
Cosimo Lupo
d98fe0f1be
[lexer_test] test absolute include, relative to cwd, and
featurefilepath=None
2018-02-28 19:40:36 +00:00
Cosimo Lupo
b30704114b
[feaLib.lexer] pass included filename token to IncludedFeaNotFound ...
In the IncludedFeaNotFound error, pass on the filename token as
it was included in the include statement, so that a client can do their
thing (e.g. issue a warning to suggest the user to write the path
relative to the UFO itself, instead of relative to the feautures.fea
which is inside a UFO).

Also. resolve includes relative to current working directory when the
IncludingLexer' filename is None because it originates from an in-memory stream.
2018-02-28 18:44:17 +00:00
Cosimo Lupo
ad7b97a7b2
[varLib.mutator] clamp width to 0 if left/right phantom points are swapped
https://github.com/fonttools/fonttools/pull/1198
2018-02-28 15:13:59 +00:00
Cosimo Lupo
a398996855
ttx_test: add test for -g splitGlyphs option 2018-02-28 13:13:31 +00:00
Cosimo Lupo
6473cc9349
add more tests for userNameToFilename function
plus minor whitespace
2018-02-28 12:26:52 +00:00
Cosimo Lupo
6930eb3b42
filenames: add code's original url, author and copyright notice 2018-02-28 11:44:44 +00:00
Bill Amidei
ccae4687cc
Moving userNameToFileName to its own file, adding unit test 2018-02-28 11:30:33 +00:00
Bill Amidei
abed27fd8c
Update for UFO naming of glyph files and make -g ttx parameter force -s 2018-02-28 11:29:33 +00:00
Cosimo Lupo
232e2b8467
Revert "Merge pull request #1130 from anthrotype/temp-revert-split-glyphs"
This reverts commit 060f856f92e0fb2d8e60f6be080c89c08528bacb, reversing
changes made to 1e42224af741fac73e20f7193d8115cfda7d3594.
2018-02-28 11:24:19 +00:00
Cosimo Lupo
0459aaacdf
Update changelog
[skip ci]
2018-02-28 10:53:47 +00:00
Cosimo Lupo
8d95de387b
Merge pull request #1201 from anthrotype/fea-location-none
[fealib] set AST element's location=None by default
2018-02-28 10:26:06 +00:00
Behdad Esfahbod
54fd71f73c [varLib/subset] Fix subsetting of GPOS variation data
Was not picking up ValueRecord Device objects. Ouch!
2018-02-27 18:52:07 -08:00
Cosimo Lupo
0ab40b772e
[feaLib.ast] default enumerated=False in PairPosStatement 2018-02-27 19:24:04 +00:00
Cosimo Lupo
1fb1529a18
[voltLib.ast] same as feaLib, location=None by default 2018-02-27 19:00:08 +00:00
Cosimo Lupo
e5c0bdd5df
[feaLib.ast] make location=None by default
This would make it easier to construct feaLib AST from code,
where the location is not defined and thus should be None.
Also, we can make other arguments as kwargs with a default
value, now that the first parameter is no longer 'location'.
2018-02-27 19:00:08 +00:00
Chris Simpkins
53117bcf88 [checksum.py] added description string, corrected file path description 2018-02-26 17:58:12 -05:00
Cosimo Lupo
ff2144ee6a
Bump version: 3.23.0 → 3.23.1.dev0 2018-02-26 12:25:44 +00:00
Cosimo Lupo
47a0bbb529
Release 3.23.0 2018-02-26 12:25:20 +00:00
Cosimo Lupo
0eba02dd07
Update changelog [skip ci] 2018-02-26 12:24:22 +00:00
Cosimo Lupo
8ca22ab002
designspaceLib: remove deprecated Element.getchildren 2018-02-26 12:09:45 +00:00
Cosimo Lupo
696edb6b6d
designspaceLib: try use cElementTree on py27 2018-02-26 12:09:05 +00:00
Cosimo Lupo
05e66d29d0
Merge pull request #1175 from belluzj/add-designspace-lib
Add properties to designspace documents
2018-02-26 12:01:49 +00:00
Cosimo Lupo
5b8826e4eb
Update changelog 2018-02-26 11:57:36 +00:00
Chris Simpkins
db38156b91 [checksum.py] fixed incorrect variable name in stderr message 2018-02-25 19:35:06 -05:00