Sascha Brawer
c7650e5cb1
[GX] In XML for 'gvar' table, rename glyphVariation to glyphVariations
...
It is a list of variations, not a single variation.
2015-06-08 22:59:58 +02:00
Sascha Brawer
a82affb34c
[GX] Move XML generation for GlyphVariations into separate method
2015-06-08 22:59:58 +02:00
Sascha Brawer
e0bd569a73
[GX] Align signature of decompileCoord() with that of similar methods
2015-06-08 22:59:58 +02:00
Sascha Brawer
5352ceb824
[GX] Handle intermediate coordinates in 'gvar' tuples
2015-06-08 22:59:58 +02:00
Sascha Brawer
343539d569
[GX] Write 'gvar' coordinates to XML
2015-06-08 22:59:58 +02:00
Sascha Brawer
50f3ca52da
[GX] Handle embedded coordinates of 'gvar' tuples
2015-06-08 22:59:57 +02:00
Sascha Brawer
ea071c3025
[GX] Decompile non-embedded 'gvar' tuple coordinates
2015-06-08 22:59:57 +02:00
Sascha Brawer
39622ed66d
[GX] Parse 'gvar' tuples and write them as XML
2015-06-08 22:59:57 +02:00
Sascha Brawer
5f317b2ed4
[GX] Decode packed point numbers
2015-06-08 22:59:57 +02:00
Sascha Brawer
1f650d7f72
Minor docfix
2015-06-08 22:59:57 +02:00
Sascha Brawer
1d90b77d2e
Parse tuple header in 'gvar' table
2015-06-08 22:59:57 +02:00
Sascha Brawer
3b32f25ebd
Use xrange() instead of range()
2015-06-08 22:59:56 +02:00
Sascha Brawer
9d7102fdfe
[GX] Implement decoding of packed deltas
2015-06-08 22:59:56 +02:00
Sascha Brawer
41c2081a5c
Fix unittest on 'gvar' shared coordinates
2015-06-08 22:59:56 +02:00
Sascha Brawer
37e9e04f0b
Avoid string copies when parsing 'gvar' table
2015-06-08 22:59:56 +02:00
Sascha Brawer
674fb52c37
Assemble offset table for 'gvar'
2015-06-08 22:59:56 +02:00
Sascha Brawer
56a4d3f9e3
[GX] Handle 'gvar' table with glyph variations
2015-06-08 22:59:56 +02:00
Behdad Esfahbod
a09d96f6a2
Leave values unchanged in fixed → float → fixed round-trip conversions
...
Fixes https://github.com/behdad/fonttools/issues/286
Fixes https://github.com/behdad/fonttools/pull/287
2015-06-08 11:35:40 -07:00
Sascha Brawer
2019cfa180
Move fixedTools tests to unittests
...
Lifted from https://github.com/behdad/fonttools/pull/287
Adds new roundtrip tests, but they are disabled.
2015-06-08 11:11:36 -07:00
Behdad Esfahbod
c0eb70308b
Merge pull request #281 from brawer/unittest
...
Unit tests for PointInsidePen
2015-05-29 10:14:26 -07:00
Sascha Brawer
79bdf00587
Unit tests for PointInsidePen
2015-05-29 09:52:09 +02:00
Behdad Esfahbod
8724513a67
[kern] Speedup compiling by 2x
...
By using font.getReverseGlyphMap().
2015-05-27 17:09:33 -07:00
Behdad Esfahbod
1d93f9099d
[kern] Make decompiling another 2x faster
...
By using font.getGlyphOrder()!
2015-05-27 17:05:09 -07:00
Behdad Esfahbod
4860a88243
[kern] Speed up decompiling by 4x
...
Mostly by not creating a new object in the hot loop.
2015-05-27 17:05:01 -07:00
Behdad Esfahbod
e6f5ba6e9c
Whitespace
2015-05-27 17:04:37 -07:00
Behdad Esfahbod
f724b2415f
Merge pull request #275 from anthrotype/unicodecustom
...
[ttx] add "--unicodedata" option for custom UnicodeData.txt
2015-05-26 11:39:24 -07:00
Behdad Esfahbod
9adc17dcaa
Merge pull request #280 from brawer/unittest
...
Unit tests for BoundsPen
2015-05-26 11:12:08 -07:00
Sascha Brawer
c84975299e
Unit tests for BoundsPen
2015-05-26 11:32:11 +02:00
Cosimo Lupo
291b41a13c
[ttx] add option to provide custom UnicodeData.txt
...
Fixes https://github.com/behdad/fonttools/issues/82
2015-05-23 18:56:33 +01:00
Behdad Esfahbod
d2f7e281a2
Merge pull request #273 from anthrotype/setuptools
...
[setup.py] use setuptools if available, or fall back to distutils
2015-05-22 09:57:00 -07:00
Cosimo Lupo
8f1e58c6a6
[setup.py] use py_modules instead of packages "" for standalone modules
...
That is to get rid of the warning that '' is not a valid package name
2015-05-20 12:40:19 +01:00
Cosimo Lupo
175a16209c
[setup.py] use setuptools if available, or fall back to distutils
...
modify scripts to work as setuptools 'console_scripts', where the main
function takes no arguments;
add empty identifier "" in 'packages' argument of setup, to install the
standalone sstruct.py and xmlWriter.py for legacy support;
remove py2exe since it is made redundant by setuptools 'console_scripts';
remove custom 'build_ext' command since the eexecOpmodule.c is no longer
present.
2015-05-20 11:02:43 +01:00
Behdad Esfahbod
ecae63a113
Merge pull request #271 from anthrotype/not_enough_data
...
[sfnt] raise TTLibError if there aren't enough bytes to unpack header
2015-05-17 21:25:17 -07:00
Cosimo Lupo
c9ee926356
[sfnt] raise TTLibError if there aren't enough bytes to unpack header
...
Fixes https://github.com/behdad/fonttools/issues/239
2015-05-17 11:07:42 +01:00
Behdad Esfahbod
330406f3e6
Merge pull request #268 from anthrotype/sfnt_typo
...
[sfnt] fixed typo: 'checksum' -> 'checkSum'
2015-05-11 15:03:54 -07:00
Behdad Esfahbod
381d21c5f9
Merge pull request #269 from anthrotype/glyf_noname
...
[glyf] fixed 'noname'
2015-05-11 12:29:36 -07:00
Cosimo Lupo
4bbe6ef57f
[glyf] fixed 'noname'
2015-05-11 17:37:48 +01:00
Cosimo Lupo
73b9acb5a2
[sfnt] fixed typo: 'checksum' -> 'checkSum'
2015-05-11 17:35:52 +01:00
Behdad Esfahbod
ca451d8c74
Merge pull request #256 from anthrotype/os2_char_index
...
[OS/2] update fsFirstCharIndex and fsLastCharIndex upon compile
2015-05-09 11:12:47 -07:00
Behdad Esfahbod
ed8a040bc6
Merge pull request #266 from brawer/unittest
...
Unit tests for BasePen
2015-05-09 11:11:40 -07:00
Sascha Brawer
4bdf5140c4
Unit tests for BasePen
2015-05-09 13:20:56 +02:00
Cosimo Lupo
1fbdbca41a
[OS/2] update fsFirstCharIndex and fsLastCharIndex upon compile;
...
add comment to XML output;
use all unicode cmap subtables, but set 0xFFFF as max value for USHORT
2015-05-09 10:17:12 +01:00
Behdad Esfahbod
a9f8853835
Merge pull request #264 from anthrotype/narrow_unichr
...
[py23] simulate "wide" unichr and ord on "narrow" UCS2-only Python 2
2015-05-08 15:43:19 -07:00
Cosimo Lupo
a29383eb9c
[py23] minor formatting fix
2015-05-08 19:53:15 +01:00
Cosimo Lupo
8ff416f2c5
[py23] simulate "wide" unichr and ord on "narrow" UCS2-only Python 2
2015-05-08 19:28:42 +01:00
Behdad Esfahbod
3048fe6161
Add back xmlWriter and sstruct as toplevel modules
...
Fixes https://github.com/behdad/fonttools/issues/190
2015-05-07 23:32:17 -07:00
Behdad Esfahbod
fdf5f1e6fa
Merge pull request #262 from anthrotype/mac_type
...
[macCreatorType] disable workaround in py27 for setting as well getting
2015-05-07 12:37:56 -07:00
Cosimo Lupo
d16d42a73b
[macCreatorType] disable workaround for setting function for all python versions
2015-05-07 19:07:22 +01:00
Cosimo Lupo
52b45f16b8
[macCreatorType] disable workaround in py27 for setting as well getting
2015-05-07 13:45:59 +01:00
Behdad Esfahbod
9a24bc40b5
Merge pull request #260 from brawer/style
...
Change whitespace in subset.py to conform with Python style guide
2015-05-07 02:15:32 -07:00