31 Commits

Author SHA1 Message Date
Nathan Williis
e5eb053105 Docs: add boilerplate docstrings to table converters. Mostly links to reference specs. 2024-12-04 15:58:46 +00:00
Behdad Esfahbod
f4669f0538 [avar] Fix assertion
Fixes https://github.com/fonttools/fonttools/issues/3546
2024-05-31 01:36:17 -07:00
Behdad Esfahbod
ed092f2552 [avar] Raise exception instead of assert 2024-04-03 07:55:04 -06:00
Behdad Esfahbod
6e0acc9e4b Add a couple of __getitem__'s 2024-04-02 10:38:36 -06:00
Behdad Esfahbod
bf6ff3b514 [avar] Add support for mapping avar2
Untested.
2024-04-02 10:23:09 -06:00
Behdad Esfahbod
781dda70de [ttFont] Move some code into fvar and avar modules 2024-04-02 10:23:09 -06:00
Behdad Esfahbod
1deed38b8d [avar2] Add compile test 2023-03-14 14:09:32 -06:00
Behdad Esfahbod
b6acb83920 [avar2] Fix fromXML a bit 2023-03-08 11:44:23 -07:00
Behdad Esfahbod
43b16df8db [avar] Update test expectations 2023-03-08 11:10:07 -07:00
Behdad Esfahbod
6c35a5b65c [avar2] Always set Version during compile 2023-03-08 11:04:52 -07:00
Behdad Esfahbod
06c725388a [avar] Fix a few tests 2023-03-08 11:02:52 -07:00
Behdad Esfahbod
564dddced2 [avar2] Fix fromXML crash 2023-03-08 10:56:45 -07:00
Behdad Esfahbod
8dfad13288 [avar2] Implement toXML 2023-03-08 09:48:32 -07:00
Behdad Esfahbod
2b5686205e [avar] Support previous API in compile/decompile
Using the otData mechanism with handcoded shim.
2023-03-08 09:29:58 -07:00
Behdad Esfahbod
fd822a2602 Merge branch 'main' into avar2 2023-03-07 11:21:20 -07:00
Behdad Esfahbod
6ba1302ce4 black 2023-03-07 11:19:22 -07:00
Nikolaus Waxweiler
d584daa8fd Blacken code 2022-12-13 11:26:36 +00:00
Behdad Esfahbod
8e013d9406 [avar] WIP Move avar to otData 2022-07-22 13:15:09 -06:00
Simon Cozens
00f37ea6b6
[docs] Split table docs into individual pages (#2444) 2021-11-18 09:01:27 +00:00
Khaled Hosny
232b2ccbc4 Move the rest of py23 module to textTools
Change all imports to use textTools module, except the test_py23.py test
which is kept until we decide to remove the module (if ever).
2021-08-20 01:29:45 +02:00
Just van Rossum
5fc65d7168
Misc py23 cleanups (#2243)
* Replaced all from ...py23 import * with explicit name imports, or removed completely when possible.
* Replaced tounicode() with tostr()
* Changed all BytesIO ans StringIO imports to from io import ..., replaced all UnicodeIO with StringIO.
* Replaced all unichr() with chr()
* Misc minor tweaks and fixes
2021-03-29 11:45:58 +02:00
Cosimo Lupo
8791caf3b8
_a_v_a_r: use floatToFixedToStr and strToFixedToFloat in toXML/fromXML methods 2019-10-08 13:40:05 +01:00
Nikolaus Waxweiler
01328213c7 Remove __future__ imports 2019-08-09 12:20:13 +01:00
Behdad Esfahbod
f82128f25d Kill progress argument
Fixes https://github.com/fonttools/fonttools/issues/1008

Doesn't touch xmlReader / xmlWriter modules.
2018-01-25 17:30:23 -08:00
Cosimo Lupo
9a49610d9a [_a_v_a_r] normalize output of toXML() by roundtripping float->fixed->float
Otherwise dumping avar table to TTX after it's been generated by
varLib could produce different float strings than when dumping the
same avar table after compiling and decompiling.
2017-08-16 18:33:55 +01:00
Behdad Esfahbod
e886617ab0 [avar] Remove fixupSegments
Fixes https://github.com/fonttools/fonttools/issues/923
2017-04-13 15:50:44 -07:00
Sascha Brawer
849734d5b5 [avar] Adjust avar header to OpenType 1.8.1 erratum
https://www.microsoft.com/typography/otspec/errata.htm

No behavioral changes, no changes in API, no changes in binary format.
Resolves https://github.com/fonttools/fonttools/issues/807
2017-01-13 15:46:20 +01:00
Cosimo Lupo
9b21ea6a09 [_a_v_a_r] replace warnings with logger 2016-01-27 19:02:48 +00:00
Sascha Brawer
53e7db624a [GX] Make it easier to construct ‘fvar’ tables from code
In the previous table-driven implementation, client code had to
know the internals of the ‘fvar’ structure for correctly adding
variation axes to a font. In the new implementation, clients
do not have to futz around with binary offsets (which makes it
more likely that tools build correct fonts).
2015-06-24 15:05:03 +02:00
Sascha Brawer
b3cda9ea22 Minor: Remove unused imports in ‘avar’ parser 2015-06-21 12:13:51 +02:00
Sascha Brawer
cd3c28ab2d [GX] Support 'avar' table 2015-06-20 00:13:01 +02:00