Nikolaus Waxweiler
128326cd50
Expand reserved names and fix illegal characters
2022-01-18 10:13:22 +00: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
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
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
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
184a6152f6
Opt out of running doctest
2022-01-11 02:00:38 +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
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
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
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
55dca28734
Remove execute permission
2022-01-06 17:49:43 +09:00
Takaaki Fuji
e2fad4db11
Add FreeType-based Pen for rasterisation
2022-01-06 09:00:53 +09:00
Thomas Rettig
892322aaff
Fix grammar ( #2487 )
2022-01-04 11:44:04 +01:00
Cosimo Lupo
bd58e66dbf
bump unicodedata2 dependency to 14.0.0
...
now supports pypy3 and Unicode 14.0
2021-12-20 16:44:17 +00:00
Cosimo Lupo
de869081df
Bump version: 4.28.5 → 4.28.6.dev0
2021-12-19 10:49:06 +00:00
Cosimo Lupo
80bdd7666b
Release 4.28.5
2021-12-19 10:49:06 +00:00
Cosimo Lupo
9f38d4de12
svgPathPen: forgot to replace remaining str() with self._ntos()
...
H and V commands were not passed through the custom number-formatting callable.
2021-12-19 10:35:46 +00:00
Behdad Esfahbod
7c542684be
[merge] Remove most 'from .. import *'
2021-12-16 13:56:11 -07:00
Behdad Esfahbod
deaf30d17c
[merge] Use merger-private namespace in TTFont.__dict__
2021-12-16 13:32:11 -07:00
Behdad Esfahbod
e6719f4dad
[merge] Clean up glyphOrder and cmap computation
2021-12-16 13:29:43 -07:00
Behdad Esfahbod
915c077bf3
[merge.util] Set CFF charset when renaming
2021-12-16 13:20:07 -07:00
Behdad Esfahbod
30c5a8b724
[merge.layout] Optimize log message interpolation
2021-12-16 12:15:54 -07:00
Behdad Esfahbod
0f101663aa
[merge] Report font name instead of number
...
Yay!
2021-12-16 10:48:10 -07:00
Behdad Esfahbod
23f00306b1
[merge] Save fontfile and fontname on opened fonts for debug purposes
2021-12-16 10:43:12 -07:00
Behdad Esfahbod
c0e61b729a
[merge] Move cmap computation closer to glyph-order computation
2021-12-16 10:31:56 -07:00
Behdad Esfahbod
8dc3d5b322
[merge] Move layout pre/post-Merge code to merge.layout
2021-12-16 10:28:03 -07:00
Behdad Esfahbod
01fcec35c6
[merge] Move renameCFFCharStrings to merge.util
2021-12-16 10:25:32 -07:00
Behdad Esfahbod
8ee5f26731
[merge] Move more code to merge.cmap
2021-12-16 10:23:01 -07:00
Behdad Esfahbod
3bb1c5b58f
[merge] Move cmap code to merge.cmap
2021-12-16 10:13:33 -07:00
Behdad Esfahbod
4955d83c4d
[merge] Whitespace
2021-12-16 09:03:10 -07:00
Behdad Esfahbod
fcdde525ca
[merge] Move options code to merge.options
2021-12-16 08:59:04 -07:00
Behdad Esfahbod
a551826380
[merge] Move helper dicts to merge.util
2021-12-16 08:57:22 -07:00
Behdad Esfahbod
99f9e07280
[merge] Add merge.unicode
2021-12-16 08:53:13 -07:00
Behdad Esfahbod
40f9e2cdc4
[merge] Move layout code into merge.layout
2021-12-16 08:47:44 -07:00
Behdad Esfahbod
eaaeb7ab28
[merge] Move most tables into merge.base module
2021-12-16 08:41:14 -07:00
Behdad Esfahbod
bb1e1bdf98
[merge] Split some code into merge.util
2021-12-16 08:37:36 -07:00
Behdad Esfahbod
3eff0a47e4
[merge] Move code into module directory
2021-12-16 08:26:56 -07:00