1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00
Commit Graph

513 Commits

Author SHA1 Message Date
Simon Sapin
20f46ea968 Fix #886, only apply clip to absopos. 2012-08-03 17:19:04 +02:00
Simon Sapin
ba8a55d5c0 Add support for outlines. 2012-08-03 16:22:32 +02:00
Simon Sapin
2614821fa9 Add support for <base href="..."> element in HTML. 2012-08-03 15:22:26 +02:00
Simon Sapin
d1971b6e63 Remove unused imports. 2012-08-03 13:32:42 +02:00
Simon Sapin
4abf401f9e Simplify Document and remove magic properties. 2012-08-03 13:00:14 +02:00
Simon Sapin
f4e6de438f Remove/adapt tests using Document.formatting_structure 2012-08-03 12:11:34 +02:00
Simon Sapin
ec8cbc6c24 Remove one-line methods in Document. 2012-08-03 11:51:58 +02:00
Simon Sapin
a19c02f7b1 Add --resolution and --base-url to the command-line API. 2012-08-02 17:19:52 +02:00
Simon Sapin
eab2646dcc Fix base_url set to a directory name.
With base_url='/a/b', a relative URL 'c' was resolved to '/a/c'.
Now it is resolved to '/a/b/c' if /a/b is a directory, '/a/c'
otherwise. This is most likely the expected behavior.
2012-08-02 17:19:34 +02:00
Simon Sapin
3b769e05c4 Add tests and changelog for the new media_type API. 2012-08-02 13:59:44 +02:00
Simon Sapin
1864d3365a s/medium/media_type/ s/user_agent_stylesheets/ua_stylesheets/ 2012-08-02 13:04:31 +02:00
Chung Wu
a51562149c Can specify the @media medium to use (defaults to print) 2012-08-01 19:09:48 -07:00
Simon Sapin
4290b55d71 Remove a zip() pathologically slow on Py2.6
The Acid2 test used to take ~14 seconds on 2.6 vs. ~3 seconds in other
versions. Most of that time was in a zip() creating a list of millions
of tuples (one for each pixels.)

Switching to izip() removed the problem.
2012-07-31 18:13:25 +02:00
Simon Sapin
feece3d3c7 Always close pixbufs. 2012-07-31 18:10:44 +02:00
Simon Sapin
38129fabb6 Do not go to the network for the Acid2 test. 2012-07-31 17:33:55 +02:00
Simon Sapin
6809b5b7c9 Switch drawing tests back to RGBA. 2012-07-31 17:30:23 +02:00
Simon Sapin
cb659911d8 Add a specific error message for 0-byte images. 2012-07-31 15:08:01 +02:00
Simon Sapin
4c0bcc3b6e Mention pixbuf in the changelog. 2012-07-31 13:01:52 +02:00
Simon Sapin
f6861a43b9 Merge branch 'pixbuf' 2012-07-31 12:48:18 +02:00
Simon Sapin
da74638d3d Allow both RGB or RGBA PNG files in tests. 2012-07-30 17:33:31 +02:00
Simon Sapin
fb01c4c839 Work around getfilesystemencoding stupidity on Linux. 2012-07-30 12:01:20 +02:00
Simon Sapin
35c4c7cbe9 Merge branch 'master' into pixbuf
Conflicts:
	tox.ini
2012-07-29 18:42:48 +02:00
Simon Sapin
41e14d6e14 Overall niceties. 2012-07-29 18:39:16 +02:00
Simon Sapin
a34fd1a616 Remove a deprecation warning. 2012-07-29 18:38:59 +02:00
Simon Sapin
eca3e872a3 Fix the PyGTK version of gdkpixbuf_loader() 2012-07-29 18:23:53 +02:00
Simon Sapin
f522eac201 Use the same get_pixbuf() for both PyGTK and introspection. 2012-07-29 18:21:33 +02:00
Simon Sapin
1efd026ad0 Warn if gdk-pixbuf istoo old for introspection. 2012-07-29 18:13:33 +02:00
Simon Sapin
f46c334fa0 Remove the Pystacia dependency in tox.ini 2012-07-29 16:55:05 +02:00
Simon Sapin
abf256a810 Merge branch 'master' into pixbuf 2012-07-29 16:53:08 +02:00
Simon Sapin
9476dd99b7 Add a warning when Pango is too old. 2012-07-29 16:37:13 +02:00
Simon Sapin
cf9f982ec5 Default to PyGTK instead of PyGObject introspection. 2012-07-29 16:25:43 +02:00
Simon Sapin
c39d4119c8 Fix MIME type registering: always use native strings. 2012-07-29 15:13:45 +02:00
Simon Sapin
4f4fc0ee8e Make some drawing tests more robust ... maybe? 2012-07-29 15:13:16 +02:00
Simon Sapin
a02ebeff7e Merge branch 'master' into pixbuf 2012-07-28 23:04:10 +02:00
Simon Sapin
e2a5a32663 Make drawing tests with text less strict. 2012-07-28 23:03:51 +02:00
Simon Sapin
50c175a5dc Force the MIME types for the file extensions we care about. 2012-07-28 22:38:44 +02:00
Simon Sapin
67dc1c80e8 Start the changelog for 0.14 2012-07-28 22:33:20 +02:00
Simon Sapin
62016d2587 Apparently UnixInputStream doesn’t work well on sockets... 2012-07-28 22:26:58 +02:00
Simon Sapin
b3c059bc08 Switch to gdk-pixbuf for raster images instead of Pystacia. 2012-07-28 22:11:28 +02:00
Simon Sapin
0095d080b8 Always pass a list as font-family
... otherwise ','.join() will take a string character-by-character …
2012-07-28 19:23:54 +02:00
Simon Sapin
9447363f69 Do not pass Unicode filenames to pycairo.
Older versions (1.8 on py2) do not like that.
2012-07-28 15:28:35 +02:00
Simon Sapin
b1f0959df5 Use the filesystem encoding for file:// URLs. This might help with #891 2012-07-27 18:55:19 +02:00
Simon Sapin
84b45b7021 Apparently lxml on Windows does not like encoding='utf32'.
Let’s try with UTF-16BE.
2012-07-27 18:36:13 +02:00
Simon Sapin
96748be086 Gotta learn to run *all* tests before pushing. 2012-07-27 18:08:05 +02:00
Simon Sapin
2cab7b9c68 Remove the PyGTK vs. PyGObject 3 test, it did not bring much. 2012-07-27 17:56:31 +02:00
Simon Sapin
6be1d8b7f4 Fix some tests on Windows ... maybe? 2012-07-27 17:52:35 +02:00
Simon Sapin
501f690d49 Require at least 2 characters in URL schemes.
This makes sure that Windows filenames like C:\foo\bar.html
are not considered as URLs.
2012-07-27 17:19:17 +02:00
Simon Sapin
e0b8161897 Also always read the testing UA stylesheet from a filename. 2012-07-27 17:15:59 +02:00
Simon Sapin
627053da62 Read the HTML5 stylesheet from a file.
Windows filenames C:\... may look like URLs.
Make sure that the HTML5 UA stylesheet is always read from a file.
2012-07-27 00:31:03 +03:00
Simon Sapin
fbfbdac032 Faster loading of non-PNG images. 2012-07-26 12:32:08 +02:00