Cosimo Lupo
c9259c4723
unicodedata: add ot_tags_from_script function
...
Fixes https://github.com/fonttools/fonttools/issues/1112
This implements the same logic found in harbfuzz hb-ot-tag.cc to
convert between Unicode (or ISO 15924) script codes to OpenType script
tags as defined at:
https://www.microsoft.com/typography/otspec/scripttags.htm
461a605fde/src/hb-ot-tag.cc (L127)
2018-01-18 20:20:17 +00:00
Cosimo Lupo
95030cb788
minor: unused variables
2018-01-15 19:50:34 +00:00
Cosimo Lupo
27d40f5160
[feaLib.builder] don't error when specific kern pairs conflict
...
Fixes #1147
2018-01-15 18:43:10 +00:00
Cosimo Lupo
60f2c741c3
CapturingLogHandler: match the fully formatted log message in assertRegex
...
and not the raw 'msg' attribute which still has the '%' formatting placeholders
2018-01-15 18:38:27 +00:00
Cosimo Lupo
bc0480e19e
[sbix] fix TypeError when += str and bytes
...
Fixes #1145
There's probably more... we'll see once we have some data from chromacheck fonts to proper test this with
2018-01-11 20:15:58 +00:00
Behdad Esfahbod
2d4e76ff0b
[bezierTools] Add calcCubicArcLength() and calcCubicArcLengthC()
...
Fixes https://github.com/fonttools/fonttools/issues/1142
2018-01-09 11:33:57 +01:00
Behdad Esfahbod
f7312fc9d0
[misc.bezierTools] Slightly improve previous commit
...
Part of https://github.com/fonttools/fonttools/issues/1142
2018-01-08 13:43:45 +00:00
Behdad Esfahbod
5dd888da1d
[misc.bezierTools] Implement cusp loop for calcQuadraticArcLength()
...
Part of https://github.com/fonttools/fonttools/issues/1142
2018-01-08 13:41:27 +00:00
Behdad Esfahbod
fe5a2ea870
[misc.bezierTools] Remove approximate_fallback arg from calcQuadraticArcLength()
...
Part of https://github.com/fonttools/fonttools/issues/1142
2018-01-08 13:41:27 +00:00
Cosimo Lupo
a322156af9
Bump version: 3.21.2 → 3.21.3.dev0
2018-01-08 12:40:40 +00:00
Cosimo Lupo
a3eadbd0f9
Release 3.21.2
2018-01-08 12:40:40 +00:00
Behdad Esfahbod
633f44da39
[varLib.merger] Fix merging of PairPos Format2 with missing subtables
2018-01-08 10:49:25 +00:00
Behdad Esfahbod
e58499cc06
[varLib.merger] Minor
2018-01-08 10:31:50 +00:00
Behdad Esfahbod
b624e0c08e
[varLib.merger] Handle missing PairPos format1/2 subtables in AligningMerger
...
Fixes https://github.com/fonttools/fonttools/issues/1125
The Format2 is still failing in my test case. Investigating.
2018-01-08 10:27:33 +00:00
Cosimo Lupo
40e50b60c3
Revert "Merge pull request #1136 from santhoshtr/svg-arc-support"
...
This reverts commit 5c392bc86542fbbc0c63335cfedae0d1406b0794, reversing
changes made to 4b69d77ae57776480901e2af82c7d9c1c29de8d6.
2018-01-05 13:07:57 +00:00
Cosimo Lupo
5c392bc865
Merge pull request #1136 from santhoshtr/svg-arc-support
...
svgLib: Add support for arcs in SVG path parser
2018-01-05 12:22:13 +00:00
Santhosh Thottingal
a8abf7246c
Remove duplicate point, add more tests
2018-01-05 17:31:53 +05:30
Santhosh Thottingal
06dc10d30b
Fix syntax error about starred expression in python < 3.5
...
Also minor documentation fix.
2018-01-04 17:56:14 +05:30
Cosimo Lupo
4b69d77ae5
Bump version: 3.21.1 → 3.21.2.dev0
2018-01-03 20:09:22 +00:00
Cosimo Lupo
d53b01f14f
Release 3.21.1
2018-01-03 20:08:49 +00:00
Cosimo Lupo
c42749466a
[S_V_G_] fix dumping toXML SVG tables containing colorPalettes
...
As reported by glukfonts in
https://github.com/fonttools/fonttools/issues/1124
2018-01-03 15:40:35 +00:00
Santhosh Thottingal
82e119e0e3
svgLib: Add support for arcs in SVG path parser
...
Implement the arc to curve points calculation using the original
svg.path library and use the curve points for the pen.
The Arc class and methods to parameterize and get curve points are
copied.
This makes the svg to glif conversion possible for any SVGs.
2018-01-01 20:05:02 +05:30
Khaled Hosny
eeb9610ec1
Simplify
2017-12-22 16:30:34 +02:00
Khaled Hosny
ec6ff821f0
[feaLib] Allow mixed single/multiple substitutions
...
A multiple substitution may have a single destination, in which case
it will look just like a single substitution. So if there are both
multiple and single substitutions, upgrade all the single ones to
multiple substitutions. Previously we would just give an error message
in the builder and abort, which means certain valid OpenType lookups
can’t be represented by feature files.
This is the same logic implemented by FontForge (actually the
explanation above is almost copied verbatim from its source), makeotf
does not do this AFAIK but I consider it a bug not a feature.
Fixes https://github.com/fonttools/fonttools/issues/612
2017-12-22 16:30:34 +02:00
Cosimo Lupo
0eccebd1a0
Bump version: 3.21.0 → 3.21.1.dev0
2017-12-18 12:25:36 +00:00
Cosimo Lupo
e82773aa11
Release 3.21.0
2017-12-18 12:24:42 +00:00
Cosimo Lupo
56a84ae905
Temporarily revert PR #1035 bamidei/split_g_l_y_f_to_one_per_file
...
The split-glyf-to-one-glyph-per-file feature is only partially implemented,
as it was discussed here:
https://github.com/fonttools/fonttools/issues/153#issuecomment-346677171
I need to cut a bugfix release today, but I don't want to ship this as is.
I prefer to temporarily rever, tag a release from master branch, then
revert it again to its present state so that bamidei can complete his
work.
---
Revert "[glyf] make splitGlyphs output more compact"
This reverts commit d08d635a93289982b028aacd3b9039fbe742f3e8.
Revert "more whitespace"
This reverts commit bd030f61c6b360fd360632bbc6c19abb057c9a24.
Revert "minor whitespace"
This reverts commit f2a8c787b13b92ae0e0f61477e584316144747c7.
Revert "Merge pull request #1035 from bamidei/split_g_l_y_f_to_one_per_file"
This reverts commit 17b89d9dde7691dbbb6815efba92eff446af62ac, reversing
changes made to b8482d9666f08d3603ee93d3ca52931550f715fc.
2017-12-18 12:00:43 +00:00
Cosimo Lupo
1e42224af7
[cmap] when compiling format6 subtable, don't assume gid0 is always called '.notdef'
2017-12-15 13:56:48 +00:00
Behdad Esfahbod
1aafae816d
Allow decompiling fonts with bad Coverage format number
2017-12-14 19:03:54 -08:00
Khaled Hosny
f0e0954afc
[feaLib] Micro optimization
...
Infer glyph classes only when we are going to use them.
2017-12-05 13:06:05 +02:00
Cosimo Lupo
df1e8c7702
[post] prune extra names already in standard Mac set
...
This should fix https://github.com/fonttools/fonttools/issues/1119
Running `ftxvalidator -T tt0004c_#1.ttf` no longer produces this error
message, but passes with 'NA'
```
Fatal
post: The name data overflow the table bounds.
kATSFontTestSeverityFatalError
```
2017-11-29 12:06:40 +00:00
Hugo Giraudel
6a5fc617de
Fix typo in --glyphs option description
2017-11-28 13:07:06 +01:00
Cosimo Lupo
ca8963e527
[subset] pass a PrivateDict instance to _delete_empty_subrs func
2017-11-27 20:29:11 +00:00
Cosimo Lupo
cad8a8c072
minor
2017-11-27 20:24:32 +00:00
Cosimo Lupo
42d11cfd3e
[subset] delete empty SubrsIndex after subsetting
...
Fixes https://github.com/fonttools/fonttools/issues/994
2017-11-27 19:37:19 +00:00
Jens Kutilek
e51293f3f0
Merge pull request #1113 from fonttools/varlib-sharedpoints-fix-test
...
Don't share points in cvar by default
2017-11-27 18:01:48 +01:00
Jens Kutilek
cb6676f93e
Don't share points in cvar by default (fails in Chrome), adjust tests to test both shared and private points in cvar
2017-11-24 19:06:36 +01:00
justvanrossum
e0c275896b
modernized reading/writing code
2017-11-24 17:46:31 +01:00
justvanrossum
0eb40c6346
make poor old afmLib work on py3
2017-11-24 16:48:55 +01:00
Cosimo Lupo
d08d635a93
[glyf] make splitGlyphs output more compact
...
removed a few extra newlines
2017-11-23 19:05:30 +01:00
Cosimo Lupo
f2a8c787b1
minor whitespace
2017-11-23 18:39:11 +01:00
Cosimo Lupo
2b4b563171
Bump version: 3.20.1 → 3.21.0.dev0
2017-11-23 18:32:24 +01:00
Cosimo Lupo
17b89d9dde
Merge pull request #1035 from bamidei/split_g_l_y_f_to_one_per_file
...
Add ability to split glyphs to 1 glyph per ttx file. Issue #153
2017-11-23 18:30:54 +01:00
Bill Amidei
feb4c0d2ed
Another white-space update to align
2017-11-23 07:53:07 -08:00
Bill Amidei
818a4a2d1e
Review comment update: Updated white-space and removed unused test data
2017-11-23 07:51:05 -08:00
Bill Amidei
de94613e08
Updates based upon review feedback for glyf to individual files; include table name in contentOnly file; Remove unnecessary parameters from toXML - leaving only the splitGlyphs optional additional parameter
2017-11-23 07:17:35 -08:00
Cosimo Lupo
b8482d9666
Release 3.20.1
2017-11-22 18:42:53 +01:00
Cosimo Lupo
1765ed772a
[unicodedata] add script_name and script_code to __all__
...
and cast to str to avoid error with import * in python2.7
TypeError: Item in from list'' must be str, not unicode
2017-11-22 18:37:14 +01:00
Cosimo Lupo
99ea0a3986
[unicodedata] add script_code func and 'default' fallback arg
...
`script_code` does the reverse of `script_name`: it takes a long
script name and returns a 4-letter script code.
Both `script_name` and `script_code` raise KeyError by default,
but can optionally return a default value instead.
2017-11-22 17:46:44 +01:00
Cosimo Lupo
afd2490a6c
[unicodedata] add script_name function
...
Converts four-letter script codes to human-readable long names
2017-11-22 17:41:23 +01:00