6235 Commits

Author SHA1 Message Date
Martin Hosken
17de50c172 Add DFLT script languagesystem test 2018-07-09 20:11:57 +01:00
pyup-bot
97e1923399 Update lxml from 4.2.1 to 4.2.3 2018-07-09 20:03:06 +02:00
Martin Hosken
6d6b9c69d4 Fix tests 2018-07-09 17:02:48 +01:00
Martin Hosken
d76f447775 More depths to allowing languages in DFLT 2018-07-09 16:41:54 +01:00
Jeremie Hornus
b72c9b9724 test private subr simpler 2018-07-09 15:07:08 +02:00
Jeremie Hornus
d95c09f272 <head> indexToLocFormat : first 2018-07-09 15:03:47 +02:00
Jeremie Hornus
11b004e172 improvements to CFF merge after Cosimo’s comments 2018-07-09 14:55:08 +02:00
Cosimo Lupo
87178f413a
Merge pull request #1290 from fonttools/xmlwriter-context-manager
Add context manager to XMLWriter
2018-07-09 13:26:10 +02:00
Miguel Sousa
523c31dd0b Add context manager to XMLWriter
93103c08ca (r29633076)
2018-07-08 22:12:44 -07:00
Jeremie Hornus
8410c0c070 bug fix with CFF charSet order and make better use of Subsetter 2018-07-08 13:13:03 +02:00
Jeremie Hornus
4966804d9d [merge] desubroutinizing with _DesubroutinizingT2Decompiler
No final compression (may happen after, outside merge)
2018-07-07 15:35:39 +02:00
Jeremie Hornus
660a057fb3 merges CFF tables 2018-07-07 14:41:46 +02:00
Ben Kiel
530c723e91 Bump version: 2.2.2 → 2.2.3.dev0 2018-07-04 17:07:19 -05:00
Ben Kiel
ac5cf7f6ed Release 2.2.2 2018-07-04 17:04:09 -05:00
Ben Kiel
c6712ad2f7 Bump version: 2.2.1 → 2.2.2.dev0 2018-07-04 17:02:46 -05:00
Ben Kiel
a93a441acb
Merge pull request #154 from unified-font-object/small_validation_fixes
Small validation fixes
2018-07-04 16:02:47 -05:00
Frederik Berlaen
a9b2020fcc Revert "touch version number"
This reverts commit cd814ed0084c8644ba2c4f92e17bab09592448e4.
2018-07-04 22:12:33 +02:00
Ben Kiel
80e47e7392
Merge pull request #155 from unified-font-object/validate_read
Turn on validation for read by default
2018-07-04 15:02:48 -05:00
Ben Kiel
e1227441e4
Grammer 2018-07-04 15:02:26 -05:00
Ben Kiel
53b4352a3b
Turn on validation by default in glyphLib 2018-07-04 13:56:44 -05:00
Ben Kiel
926bbdd57e
Update __init__.py 2018-07-04 13:48:37 -05:00
Frederik Berlaen
cd814ed008 touch version number 2018-07-04 14:46:58 +02:00
Frederik Berlaen
7763e01ef8 append the image fileName when no validation is required 2018-07-04 14:44:35 +02:00
Frederik Berlaen
46fefd82c7 set the _validate attribute before reading or writing anything 2018-07-04 14:44:05 +02:00
Cosimo Lupo
d01c383fe9
Release 2.2.1 2018-07-03 19:15:36 +01:00
Cosimo Lupo
e33561b50d
Add lxml >= 4.0 to setup.py install_requires
fixes https://travis-ci.org/robofab-developers/fontParts/jobs/399648345#L492

See discussion at https://github.com/unified-font-object/ufoLib/pull/153#issuecomment-402205299
2018-07-03 19:10:36 +01:00
Ben Kiel
00595aa4f8 Bump version: 2.2.0 → 2.2.1.dev0 2018-07-03 10:42:56 -05:00
Ben Kiel
4811c3ddc6 Release 2.2.0 2018-07-03 10:39:32 -05:00
Ben Kiel
acf8e83d33 Bump version: 2.1.2.dev0 → 2.2.0.dev0 2018-07-03 10:35:27 -05:00
Tal Leming
60b54c14af
Merge pull request #153 from unified-font-object/validation_optional
Validation optional
2018-07-03 11:27:00 -04:00
Ben Kiel
55f131d42a
Merge pull request #152 from unified-font-object/master
Syncing with master
2018-06-30 13:38:16 -05:00
Ben Kiel
fe88d1d83d
Merge branch 'validation_optional' into master 2018-06-30 13:37:51 -05:00
Miguel Sousa
8d7774a3e8 [pscharstrings] Optimize the charstring's bytecode
by encoding as integers all float values that have no decimal portion.

This optimization is expected to reduce the file size of CFF2 fonts that have intermediate masters.

Related to https://github.com/adobe-type-tools/afdko/issues/444

Many thanks to @cjchapman for the help on the fixed point math
2018-06-29 09:54:00 -07:00
Cosimo Lupo
ad597a49b4
Merge pull request #1285 from bgermann/master
Add missing import
2018-06-28 13:21:34 +01:00
bgermann
d438f15118
Add missing import 2018-06-28 14:07:14 +02:00
Ben Kiel
17c8d2c31e
Merge pull request #151 from unified-font-object/pyup-scheduled-update-2018-06-25
Scheduled weekly dependency update for week 25
2018-06-26 09:28:36 -05:00
pyup-bot
bf282c8c6d Update fonttools from 3.27.0 to 3.28.0 2018-06-25 18:59:06 +01:00
Cosimo Lupo
a2622d7222
Merge pull request #1278 from silnrsi/bugfix2
Allow any languages under DFLT script
2018-06-20 11:30:06 +01:00
Martin Hosken
29d67a90c5 Update tests to not require removed assertion 2018-06-20 09:57:07 +01:00
Martin Hosken
1ae0bf87a0 Allow any languages under DFLT script 2018-06-20 09:42:46 +01:00
Cosimo Lupo
f251c8d665
Bump version: 3.28.0 → 3.28.1.dev0 2018-06-19 17:30:35 +01:00
Cosimo Lupo
37ed01cb4f
Release 3.28.0 2018-06-19 17:30:34 +01:00
Cosimo Lupo
15b2bd4dd9
Update changelog 2018-06-19 17:30:13 +01:00
Cosimo Lupo
4c0dbd1515
Merge pull request #1276 from anthrotype/mutator-wght-wdth-slnt
WIP [mutator] set usWeightClass, usWidthClass and italicAngle
2018-06-19 17:23:56 +01:00
Cosimo Lupo
d9d30c819a
loggingTools: move here the LastResortLogger from py23
and add a small test
2018-06-19 16:54:50 +01:00
Cosimo Lupo
e6a5db543d
py23: don't automatically set logging.lastResort handler on py27
To avoid the 'No handlers could be fonud' message, from now on, one should always
configure logging in one's scripts or applications.

logging.basicConfig, or fontTools.configLogger (with some predefined defaults
useful for fonttools scripts) can be used to quickly configure logging.
Read the python docs for more advanced logging usage.
2018-06-19 15:35:28 +01:00
Cosimo Lupo
8c597b5375
mutator: round to closest width class
this is the mapping between the half of each percentage intervals and
the associated usWidthClass:

{56.25: 1,
 68.75: 2,
 81.25: 3,
 93.75: 4,
 106.25: 5,
 118.75: 6,
 137.5: 7,
 175.0: 8}

Notice how wdth=80 (in the adjusted test case) will fall in width class
3, instead of 4, because it is < 81.25, thus closer to the nominal 75
than to 87.5.
2018-06-19 14:16:17 +01:00
Cosimo Lupo
0234b9dbd5
mutator: also clamp usWeightClass between valid 1...1000 2018-06-18 19:45:20 +01:00
Cosimo Lupo
8fcbf78d8b
Tests: adjust expected usWeightClass and usWidthClass 2018-06-18 19:41:03 +01:00
Cosimo Lupo
dbe08a62ad
mutator: set usWeightClass, usWidthClass and italicAngle
https://github.com/fonttools/fonttools/issues/1264
2018-06-18 19:40:30 +01:00