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
3ad201cbe5
Snippets/decompose-ttf: remove overlaps with skia-pathops
2020-07-23 11:19:45 +02:00
justvanrossum
39301b235a
whitespace
2020-07-23 07:12:34 +02:00
justvanrossum
2bc53e75ad
add hashbang and comment; add +x mode
2020-07-23 07:11:11 +02:00
justvanrossum
a95aace05e
add snippet that shows how to decompose glyphs in a TTF
2020-07-23 07:07:01 +02:00
Zachary Scheuren
c88be61b1f
In otf2ttf conversion update LSB in hmtx to match xMin
2020-04-06 09:46:20 -07:00
Cosimo Lupo
7d59ccbed6
Snippets/otf2ttf: use fontTools.pens.cu2quPen
2020-03-31 17:26:53 +01:00
ln_north
9a49b01ec1
fix requirements in svg2glif.py
...
- Remove unused `ufoLib` package
- FontTools => fontTools
2019-12-10 09:39:53 +09:00
Cosimo Lupo
cfc5b44c65
change all scripts' shebangs to use python3
2019-12-05 15:28:19 +00:00
Nikolaus Waxweiler
01328213c7
Remove __future__ imports
2019-08-09 12:20:13 +01:00
Cosimo Lupo
b324839eeb
Snippets: remove woff2_{,de}compress.py; superseded by fonttools ttLib.woff2
2019-06-14 18:30:33 +01:00
Cosimo Lupo
ba41877d10
Snippets/woff2_compress: add --hmtx-trasform option; use argparse
2019-06-13 18:07:14 +01:00
Cosimo Lupo
5d7e750b69
Snippets/woff2_compress: add --disable-transforms option
2019-06-11 15:13:09 +01:00
Cosimo Lupo
67fe931f15
Snippets/svg2glif: import internal copy of glifLib and pointPen modules
2019-02-22 11:08:40 +00:00
Chris Simpkins
1c0a55905b
[Snippets] added usage documentation as a Markdown block in the notebook
2019-01-29 23:55:51 -05:00
Chris Simpkins
33b03e3edd
[Snippets] add name-viewer.ipynb jupyter notebook
2019-01-29 23:30:49 -05:00
Miguel Sousa
fdc4bb7354
otf2ttf. Add option to overwrite existing files
2018-10-10 18:13:02 -07:00
Miguel Sousa
75e3546b3c
otf2ttf. Support multiple input files
2018-10-10 18:01:38 -07:00
Khaled Hosny
24226fd592
Put back __future__ import
2018-10-09 18:43:34 +02:00
Khaled Hosny
e1047a3177
Sort imports
...
Also remove unused __future__ imports.
2018-10-09 17:25:40 +02:00
Khaled Hosny
13de4f30c2
[Snippets] Improve otf2ttf.py post table message
2018-10-09 17:25:40 +02:00
Khaled Hosny
5ad27dfb40
[Snippets] Handle post table overflow in otf2ttf.py
...
Fixes https://github.com/fonttools/fonttools/issues/1329
2018-10-09 17:25:40 +02:00
Khaled Hosny
c9f79af8ce
[Snippets] Allow otf2ttf.py to take in TTC fonts
...
Processes individual faces only, though. No support for writing out font
collections.
2018-10-09 17:25:40 +02:00
Cosimo Lupo
80bfc3ccd5
Snippets: add rename-fonts.py to append a suffix to all family names
2018-06-05 21:41:11 +01:00
Cosimo Lupo
299320d0b1
Snippets/layout-features.py: allow to load from ttx file
2018-05-23 11:50:40 +01:00
Chris Simpkins
53117bcf88
[checksum.py] added description string, corrected file path description
2018-02-26 17:58:12 -05:00
Chris Simpkins
db38156b91
[checksum.py] fixed incorrect variable name in stderr message
2018-02-25 19:35:06 -05:00
Chris Simpkins
d8e5f5cc37
removed header text
2018-02-25 19:32:20 -05:00
Chris Simpkins
362db5c99a
[checksum.py] added file path documentation to source header
2018-02-25 12:06:12 -05:00
Chris Simpkins
0f49e20675
[Snippets/checksum.py] adds checksum.py script for SHA1 hash checksum list generation from font binaries or ttx XML OT table dumps from font files, and checksum testing against valid checksum files
2018-02-24 21:43:59 -05:00
Jens Kutilek
b09c2e0d2b
Add b to bytes
2018-01-09 16:13:35 +01:00
Jens Kutilek
0cae12bdbd
Add snippet manipulating raw table data
2018-01-09 11:18:01 +01:00
Cosimo Lupo
eab152e297
[Snippets] add script to convert SVG outlines to UFO GLIF
...
(requires ufoLib)
2017-09-12 23:09:31 -04:00
Khaled Hosny
7bea4c66c6
Add a snippet to remove LangSys from DFLT script
...
Such fonts violate the spec and OTS rejects them, this snippet should
help quickly fixing such fonts.
2017-06-23 02:46:33 +02:00
Dave Crossland
b7b3653b18
Snippets/README.md new link
2017-03-29 21:03:09 -04:00
Behdad Esfahbod
b9ff863b2c
Move Snippets/interpolatable.py to fontTools.varLib.interpolatable
2017-02-26 10:43:11 -08:00
Behdad Esfahbod
7d36bf42ef
[interpolatable] Don't pass glyphset to subpen in PerContourPen
...
It doesn't need it. We just record the component.
2017-02-22 14:45:05 -06:00
Behdad Esfahbod
8879318c0b
Move RecordingPen to fontTools.pens.recordingPen
2017-02-21 12:11:36 -06:00
Behdad Esfahbod
5a06247ef8
[interpolatable] Derive RecordingPen from AbstractPen, not BasePen
2017-02-21 12:08:07 -06:00
Behdad Esfahbod
f0584a8507
[interpolatable] Change RecordingPen.draw to replay
2017-02-21 12:02:04 -06:00
Behdad Esfahbod
55e529f7a3
Add fontTools.pens.teePen
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
69c11928a2
[interpolatable] Minor
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
63c283a3c8
[interpolatable] Remove use of perimeter again
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
c935118072
[interpolatable] Add TeePen
...
Used to combine StatisticsPen and PerimeterPen into one pen for example.
Though, that example to be removed again.
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
d4d12d255c
[interpolatable] Minor
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
d748db59cc
[interpolatable] Minor
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
14b46cf7a6
[symfont] Move symfont to fontTools.misc.symfont
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
724e6dab4e
[symfont] Minor
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
08755ea1a4
[symfont] Move code around
2017-02-21 12:01:10 -06:00
Behdad Esfahbod
ba4d63ea1c
[symfont] Fixup for 1fe8d9f0d149d571626dd3f9121953fd71ebcc2c
2017-02-21 12:01:10 -06:00