9462 Commits

Author SHA1 Message Date
Cosimo Lupo
69fc06a1af Bump version: 4.29.0 → 4.29.1.dev0 2022-01-24 18:36:20 +00:00
Cosimo Lupo
aa8aaae3cc Release 4.29.0 2022-01-24 18:36:19 +00:00
Cosimo Lupo
624130c767 Update changelog [skip ci] 2022-01-24 18:36:08 +00:00
Nikolaus Waxweiler
96ac799cf9
Merge pull request #2506 from fonttools/ufolib-expand-reserved-filenames
[ufoLib] Expand reserved names and fix illegal characters
2022-01-24 10:41:37 +00:00
Cosimo Lupo
48ffc7d9a0
Merge pull request #2513 from fonttools/colrv1-duplicate-base-glyphs
[colrv1] ensure base glyphs with equal layers share the same PaintColrLayers
2022-01-24 10:31:07 +00:00
Cosimo Lupo
afc5b0b7c6 LayerListBuilder: don't emit useless PaintColrLayers of length=1
We already filter len(layers)==1 out upfront, but these can sneak in after the layer reuse code when input contains two base glyphs that refer to the same list of layers. This ensure that duplicate base glyphs get the same PaintColrLayers, rather than a wrapper PaintColrLayers of length=1 pointing to the underlying shared PaintColrLayer...
2022-01-21 19:14:30 +00:00
Cosimo Lupo
e68a5a173c colorLib_test: check that duplicate base glyphs share share the same PaintColrLayers
this test currently fails; currently the second, third, etc. base glyphs with the same layers gets a unique PaintColrLayers with NumLayers:1 that in turn contains the shared PaintColrLayers. They should instead all share the same PaintColrLayers. Fix in the next commit
2022-01-21 19:08:22 +00:00
Cosimo Lupo
eded208670 [colorLib] remove unused self.slices attribute from LayerListBuilder 2022-01-21 18:41:13 +00:00
Cosimo Lupo
036003e850
Merge pull request #2509 from fonttools/remove-win-wait-for-keypress-on-exit
remove waitForKeyPress on windows
2022-01-19 17:34:40 +00:00
Cosimo Lupo
c50cc3e1eb
Merge pull request #2508 from fonttools/jamo-as-hang-ot-script
unicodedata: alias 'jamo' script tag to 'hang'
2022-01-19 17:34:23 +00:00
Cosimo Lupo
7c38f3d393 remove waitForKeyPress on windows
One should just use 'pause' command in a batch script wait to for key press, no need for ttx to do anything.

Fixes #2507
2022-01-19 16:40:03 +00:00
Nikolaus Waxweiler
128326cd50 Expand reserved names and fix illegal characters 2022-01-18 10:13:22 +00:00
Cosimo Lupo
f7653a577d
Merge pull request #2500 from takaakifuji/rtd-ftpen-fix
FreeTypePen: fix missing RTD entry
2022-01-13 10:18:25 +00:00
Takaaki Fuji
88e401b57b Add freetype-py to docs-requirements.txt 2022-01-13 19:01:24 +09:00
Takaaki Fuji
a7e330aa83 Revert "Raise ImportError in __init__"
This reverts commit 24d356da25a148c63c78c461a8ccc7e632371ca4.
2022-01-13 18:59:47 +09:00
Takaaki Fuji
0e5b5790ef Fix example code block formatting in docs 2022-01-13 15:09:45 +09:00
Takaaki Fuji
24d356da25 Raise ImportError in __init__
Importing freetype at import time breaks the Read the Docs build. Solves
the issue by raising an error in __init__ as fontTools.ttLib.woff2 does,
while avoiding adding an extra line to Doc/docs-requirements.txt.
2022-01-13 08:42:58 +09:00
Cosimo Lupo
7b4c6af66c
Merge pull request #2494 from takaakifuji/ftpen
Add FreeType-based Pen for rasterisation
2022-01-12 13:07:28 +00:00
Takaaki Fuji
c0c354ece2 Add name to acknowledgements 2022-01-12 21:50:04 +09:00
Takaaki Fuji
6c5faa6be9 Add description to requirements section 2022-01-12 21:49:26 +09:00
Cosimo Lupo
98f5fd3d5a unicodedata: alias 'jamo' script tag to 'hang'
see https://github.com/googlefonts/ufo2ft/issues/575#issuecomment-1009962836
2022-01-11 17:13:20 +00:00
Takaaki Fuji
d181ecaaaf Fix warnings when generating docs 2022-01-12 01:27:40 +09:00
Takaaki Fuji
f87f75a437 Replace base64-encoded images with PGM files
Surprisingly I found Preview.app can still display PGM images. While
somewhat legacy, it's a super straightforward format to (de)serialize.
The images are scaled to 50x50 px and only consume 5KB in total. Makes
more sense to human being than the previous base64-encoded zlib
compressed data, plus we don't have to add pillow as a dependency.
2022-01-12 01:09:15 +09:00
Khaled Hosny
c2f389d289
Merge pull request #2495 from fonttools/davelab6-ftCLI-link
Update Snippets/README.md
2022-01-11 16:47:32 +02:00
Khaled Hosny
3e32646d53
Merge pull request #2498 from fonttools/pyup-scheduled-update-2022-01-10
Scheduled weekly dependency update for week 02
2022-01-11 16:47:09 +02:00
Takaaki Fuji
072b4c8db0 Fit to contents when image size omitted
Eliminates the assumption of any specific metrics from the pen. It still
gives some image without giving any parameters, thus it should be a good
starting point for new users.
2022-01-11 23:02:37 +09:00
Takaaki Fuji
e3bbf39a28 Move evenOdd to end in kwargs
Should put dimension-related arguments into a group.
2022-01-11 23:02:37 +09:00
Takaaki Fuji
6f7ef4a838 Prefer single transform matrix over offset/scale 2022-01-11 23:02:37 +09:00
Cosimo Lupo
c335fe97db
Merge pull request #2499 from fonttools/add-old-uyghur-to-rtl-script
unicodedata: update the script direction list to Unicode 14.0
2022-01-11 13:27:29 +00:00
Cosimo Lupo
09e2d1d548 unicodedata: update the script direction list to Unicode 14.0
same as https://github.com/harfbuzz/harfbuzz/blob/3.2.0/src/hb-common.cc#L514-L613
2022-01-11 13:19:01 +00:00
Takaaki Fuji
42bc1257b4 Add reference for PSNR 2022-01-11 02:26:05 +09:00
Takaaki Fuji
184a6152f6 Opt out of running doctest 2022-01-11 02:00:38 +09:00
Takaaki Fuji
3f26a1301a Add freetype-py to requirements.txt 2022-01-11 01:42:05 +09:00
Takaaki Fuji
d399e93d95 Rename even_odd to evenOdd
PointInsidePen already uses camelCase convention for the argument.
2022-01-11 01:42:05 +09:00
Takaaki Fuji
2c0ab2a05a Relax assertions for rendering tests
There are possibilities that the rendering results may change among
FreeType versions. I've already used the PSNR comparison for cubic
vs quadratic testing, so I applied the same technique and threshold to
all rendering tests to relax assertions. Also handles the case that
MSE becomes zero. Optional dependencies are not needed for the tests.
2022-01-11 01:42:05 +09:00
Takaaki Fuji
0e880260ae Remove unnecessary import in test 2022-01-11 01:41:43 +09:00
pyup-bot
a411ecf51f Update reportlab from 3.6.3 to 3.6.5 2022-01-10 16:04:04 +00:00
Takaaki Fuji
d0dbbbd3c8 Rename to freetypePen/FreeTypePen 2022-01-10 23:51:28 +09:00
Takaaki Fuji
9a9d0f0895 Remove save() method
As Khaled suggests, 'pen.image().save()' will do.
2022-01-10 23:43:59 +09:00
Takaaki Fuji
e3694b602b Fix another typo in docstring 2022-01-10 23:25:09 +09:00
Takaaki Fuji
bf45aec95f Fix typo 2022-01-10 19:08:11 +09:00
Takaaki Fuji
dd72f7c326 Fix missing call to superclass __init__ 2022-01-10 18:19:58 +09:00
Just van Rossum
e778f2c3f4
Merge pull request #2496 from derwind/fix-fontName-in-suckfont
Fix type of fontName in suckfont
2022-01-08 19:22:45 +01:00
derwind
176bae31ed convert bytes to str 2022-01-08 23:34:22 +09:00
Takaaki Fuji
e4c1deb64f Add documentation
Note that the example covers a ltr/rtl/ttb typesetting with uharfbuzz.
2022-01-08 02:06:14 +09:00
Takaaki Fuji
f7c29e89be Change arguments for positioning and dimension
After experimenting with uharfbuzz for a while, I found out it was hard
to handle top-to-bottom texts, so I gave up an idea to put an ascender
or a descender value in the arguments. Instead, I simply expose 'offset',
'width' and 'height', which is way more straightforward than the
previous design.

In addition, 'contain' option is added to easily compensate and render
glyphs such as combining accents or excessively tall letters.
2022-01-07 22:29:01 +09:00
Dave Crossland
1904041dc3
Update Snippets/README.md 2022-01-06 16:24:46 -05:00
Takaaki Fuji
288d907497 Stop trying to cache modules pointlessly 2022-01-06 22:10:05 +09:00
Takaaki Fuji
10a3ca8ea5 Use freetype-py instead
I didn't expect that the PyPI package contains the pre-built binary
for each platform. Skip the test when freetype-py is not avaiable.
2022-01-06 19:07:26 +09:00
Takaaki Fuji
46c580f00b Fix import in unit test 2022-01-06 18:18:42 +09:00