Cosimo Lupo
baf11f64f4
feaLib/builder_test: add test for #1459
2019-01-19 12:17:38 +00:00
Cosimo Lupo
23f0b5f5b1
[feaLib.builder] do not make <NULL> ValueRecord
2019-01-19 12:11:14 +00:00
Cosimo Lupo
091b05296d
[feaLib] distinguish missing value and explicit '<NULL>' for PairPos2 format A
...
Fixes #1459
2019-01-19 11:46:05 +00:00
Behdad Esfahbod
af0e78e2eb
Merge pull request #1458 from googlefonts/retain_gids
...
Insert empty widths into hdmx when retaining gids.
2019-01-18 20:47:36 -05:00
Garret Rieger
d376057fb6
Insert empty widths into hdmx when retaining gids.
2019-01-18 17:32:04 -08:00
Cosimo Lupo
6367810c0e
Bump version: 3.36.0 → 3.36.1.dev0
2019-01-17 17:01:58 +00:00
Cosimo Lupo
3a6c66a284
Release 3.36.0
2019-01-17 17:01:57 +00:00
Cosimo Lupo
82702430d5
Update NEWS.rst [skip ci]
2019-01-17 16:58:41 +00:00
Cosimo Lupo
7a2fea9843
[ttx] should also white-list 'no-recalc-timestamp' for getopt to work
...
aargh..
Follow up from #1455
2019-01-17 15:02:01 +00:00
Just van Rossum
176f2e8244
[cffLib] Fix for #1451 ( #1456 )
...
* a charstring is not guaranteed to end in an operator, so the final bytecodes 11 and 14 can be part of an encoded numeric value; so remove 'return' or 'endchar' at the program level instead of bytescode
* move non-CFF2 test+error to elif clause of earlier isCFF2 test
Fixes the remaining issue from #1451
2019-01-17 16:01:15 +01:00
Cosimo Lupo
2c204ef81b
Merge pull request #1455 from anthrotype/ttx-no-recalc-timestamp-opt
...
[ttx] add --no-recalc-timestamp option to keep original head.modified
2019-01-17 14:54:57 +00:00
Cosimo Lupo
0e47ea1fac
[ttx] add --no-recalc-timestamp option to keep original head.modified
...
Fixes #46
2019-01-17 13:26:59 +00:00
Cosimo Lupo
158a7a3d4b
Merge pull request #1452 from anthrotype/fix-cff2-ttx-dump
...
[cff2] fix AttributeError 'isCFF2' when dumping CFF2 with ttx
2019-01-17 13:10:31 +00:00
Cosimo Lupo
1702536150
psCharStrings: only assert no extra args on stack upon compile, not in toXML
...
Fixes #1451
2019-01-17 11:59:51 +00:00
Denis Moyogo Jacquerye
017523414c
Merge pull request #1453 from khaledhosny/volt-stop-at-end
...
[voltLib] Don’t try to read past END
2019-01-17 09:59:31 +00:00
Khaled Hosny
e529832362
[voltLib] Don’t try to read past END
...
The parser was still trying to read the next token even when the current
token was END, but I think it should just stop reading here. When
reading from TSIV table there can be null bytes at the end when would
cause an exception in the lexer.
2019-01-16 23:04:14 +02:00
Cosimo Lupo
a3dd59d6ea
Merge pull request #1447 from anthrotype/retain-gids-cff
...
[subset] set emptied CFF charstrings to 'endchar' with --retain-gids
2019-01-16 16:51:57 +00:00
Cosimo Lupo
fe40af6d99
minor
2019-01-16 16:10:13 +00:00
Cosimo Lupo
1cde186172
subset_test: add test for --retain-gids and CFF2 table
2019-01-16 16:02:07 +00:00
Cosimo Lupo
6b4474b2c4
[subset] actually, ignore the width of emptied charstrings
...
basically, implies setting them to their defaultWidthX, which is the most efficient
way to store these (unnecessary) piece of data.
2019-01-16 16:01:12 +00:00
Cosimo Lupo
3e400c8828
don't add width and endchar for empty glyphs if it's CFF2
...
This also seems to fix https://github.com/fonttools/fonttools/issues/1448
2019-01-16 14:34:41 +00:00
Khaled Hosny
ca716e0925
[voltLib] Fix check for duplicate anchors
...
When checking for duplicate anchors, the component number should be
taken into account since the same anchors can be used for different
components i.e. over ligatures.
2019-01-16 15:31:05 +02:00
Cosimo Lupo
dec9ec0e73
Merge pull request #1449 from anthrotype/varlib-sparse-masters-post-underline
...
[varLib] ignore post.underline* from sparse masters when building MVAR
2019-01-16 12:15:29 +00:00
Cosimo Lupo
7740d1736c
varLib_test: add test for sparse masters
2019-01-16 11:25:29 +00:00
Cosimo Lupo
93e791ab24
[varLib] use magic -0x8000 to ignore post.underline* for MVAR
...
googlei18n/ufo2ft#308 (comment)
googlei18n/ufo2ft#310
2019-01-16 11:25:29 +00:00
Cosimo Lupo
7d947c9fd8
[varLib] use magic 0x8000 to ignore post.underline* for MVAR
...
https://github.com/googlei18n/ufo2ft/issues/308#issuecomment-454079704
https://github.com/googlei18n/ufo2ft/pull/310
2019-01-15 16:16:40 +00:00
Cosimo Lupo
336abfcaf0
[subset] set charstring's effective width to 0 when --retain-gids
...
seems to be the consensus, despite this may add a few bytes when
the emptied glyph's width is different from PrivateDict.defaultWidthX
2019-01-15 15:24:26 +00:00
Cosimo Lupo
af1a0d1fe5
[subset] set emptied CFF charstrings to 'endchar' with --retain-gids
...
Part of #1446
2019-01-15 14:07:54 +00:00
Cosimo Lupo
71dbe2daea
subset_test: add test for --retain-gids option
2019-01-15 11:31:28 +00:00
Cosimo Lupo
c7b66dc59c
Merge pull request #1443 from fonttools/subset-retain-gids
...
[subset] Add --retain-gids to retain glyph indices
2019-01-15 11:30:38 +00:00
Cosimo Lupo
42ab9aba57
[ufoLib] rename deprecated fs.setbytes -> writebytes
...
Follow up of #1445
Fixes #1424
2019-01-15 11:07:04 +00:00
Nikolaus Waxweiler
f47fee933c
ufoLib, fs calls: Replace deprecated getbytes with readbytes ( #1445 )
...
fs 2.2.0 comes with some renamed APIs.
2019-01-15 09:49:24 +00:00
Behdad Esfahbod
dd081d64dc
[subset] Add --retain-gids to retain glyph indices
2019-01-14 16:45:50 -05:00
Cosimo Lupo
7cbb2da4df
Merge pull request #1441 from anthrotype/varlib-load-ttx
...
[varLib] allow loading masters from TTX files as well
2019-01-14 19:28:39 +00:00
Cosimo Lupo
b2fac2333e
[varLib] allow loading masters from TTX files as well
...
in a designspace document, the sources' filename attribute can now contain
a relative path to a .TTX file for that master, in addition to .TTF or .UFO
(the latter, resolved through a master_finder callable as before).
2019-01-14 16:32:51 +00:00
Cosimo Lupo
53ad36e42b
Bump version: 3.35.2 → 3.35.3.dev0
2019-01-14 14:26:25 +00:00
Cosimo Lupo
ea489baaf1
Release 3.35.2
2019-01-14 14:26:24 +00:00
Cosimo Lupo
0ca13f8e5a
Update NEWS.rst [skip ci]
2019-01-14 14:26:16 +00:00
Cosimo Lupo
f782a1197b
Merge pull request #1439 from anthrotype/hmtx-without-hhea
...
{v,h}mtx: allow to compile/decompile even without {v,h}hhea table
2019-01-14 13:59:58 +00:00
Cosimo Lupo
8350332461
{v,h}mtx: allow to compile/decompile even without {v,h}hhea table
...
when no horizontal/vertical header table is present, we assume numberOfHMetrics == maxp.numGlyphs.
This allows to compile/decompile incomplete fonts, only containing head, maxp, hmtx, loca and glyf (or CFF),
that is the bare minimum to temporarily store glyph outline and metrics data for use with sparse/intermediate
master TTFs in varLib.
See https://github.com/googlei18n/ufo2ft/issues/308
2019-01-14 13:45:24 +00:00
Cosimo Lupo
36da84db01
Update NEWS.rst [skip ci]
2019-01-13 17:24:08 +00:00
Cosimo Lupo
fe19178ff0
Merge pull request #1438 from anthrotype/enable-varLib-labelNames
...
[varLib] use addMultilingualName method to support localized axis and instance names
2019-01-13 17:07:31 +00:00
Cosimo Lupo
48e72dab9b
varLib: use addMultilingualName for localised instance style names
...
designspaceLib: ensure instance localised names are set as unicode strings
2019-01-13 15:04:55 +00:00
Cosimo Lupo
e6d5b5531a
mutator: drop 'ltag' table if no longer referenced from 'name' table
2019-01-13 14:42:36 +00:00
Cosimo Lupo
57f6e310f3
varLib_test: test axes with non-english labelnames
2019-01-13 13:43:00 +00:00
Cosimo Lupo
1a07ba9bc4
Doc/designspaceLib: clarify labelNames values must always be unicode
...
otherwise, on py27, we end up writing garbage bytes in name record
strings.
2019-01-13 13:40:04 +00:00
Cosimo Lupo
acbc65c1a9
varLib: use addMultilingualName method to support localized axes 'labelname'
...
now that addMultilingualName method also adds mac names by default, we can use it in
varLib instead of addName.
The language identifiers are expected to be minimized, i.e. not contain default script/region
subtags -- until we implement the minimizeSubtags algorithm from ICU/CLDR:
https://github.com/fonttools/fonttools/issues/930
2019-01-13 13:39:15 +00:00
justvanrossum
d938668cc2
some purely cosmetic whitespace edits
2019-01-10 19:35:34 +01:00
Just van Rossum
6f7c0f1d09
[ttLib] cmap format 14 cleanup ( #1437 )
...
* cleanup cmap format 14 TTX format by removing redundant attributes
* don't output the name attr for a default mapping, instead of a glyph named 'None'
* still accept 'None' as an indicator glyph name, for bw compatibility
* swap order of TTX attrs uv and uvs
* make sure (unicode, glyphName) pairs are always tuples in uvsDict.
2019-01-10 19:19:35 +01:00
Just van Rossum
855378477f
[ttLib] adding a test for cmap format 14 (unicode variation sequences) ( #1436 )
...
Adding a test for cmap format 14 (unicode variation sequences), in preparation for #1435
2019-01-10 16:48:10 +01:00