Simon Sapin
35b3c1ad8d
Upgrade background-position to Level 3.
2013-03-25 18:59:18 +01:00
Simon Sapin
c8bd3a3782
Allow percentages in background-size.
2013-03-21 12:53:53 +01:00
Simon Sapin
7a4faac087
Add background-attachement: local
, same as scroll.
...
Since we have no scrolling mechanism,
local and scroll are treated the same.
2013-03-20 13:34:13 +01:00
Simon Sapin
1616e37259
Upgrade the background shorthand for multiple layers.
2013-03-20 13:19:48 +01:00
Simon Sapin
911ed43169
Add support for multiple backgrounds (except for the shorthand.)
2013-03-19 18:29:58 +01:00
Simon Sapin
408b7d6605
Fix #49 : Division by 0 on dashed or dotted border smaller than one dot/dash.
2013-03-18 13:44:12 +01:00
Simon Sapin
3a42860018
Move GDK-PixBuf code to cairocffi.pixbuf
2013-02-26 15:04:52 +01:00
Simon Sapin
d310ffe47d
Merge branch 'cffi'
...
Conflicts:
weasyprint/text.py
2013-02-25 15:23:59 +01:00
Simon Sapin
829c758788
Keep currentColor as a computed value, resolve in used value
...
According to the css3-color errata:
http://www.w3.org/Style/2011/REC-css3-color-20110607-errata.html
2013-01-23 16:52:47 +01:00
Simon Sapin
294be548b0
All tests passsing with cffi!!
2012-12-29 14:55:59 +01:00
Simon Sapin
5baee96712
Use pixbuf through cffi.
2012-12-29 11:58:52 +01:00
Simon Sapin
c70b00b5b8
More WIP: cairocffi and pango cffi.
2012-12-29 01:36:06 +01:00
Simon Sapin
d2040ac77a
WIP: use Pango and cairo through cffi.
...
Use cairocffi
Ditch pycairo, PyGTK and PyGobject-introspection.
2012-12-28 23:17:04 +01:00
Simon Sapin
f243dbcca3
Embed JPEG-encoded images in PDF. Fix #6
...
If an image is in JPEG format, embed it as-is in the PDF output.
This often results in smaller PDF file size.
(The image is still decoded however,
so there is no rendering speed improvement.)
2012-12-20 20:12:52 +01:00
Simon Sapin
4f8deadc47
Work around a bug in old pycairo versions.
...
See
http://cgit.freedesktop.org/py2cairo/commit/?id=cab2c1295499f57247854e8635b77ca716fa9730
2012-12-12 09:25:28 +01:00
Simon Sapin
f8457ba3a5
Move save_pixels_to_png() to the test_draw module.
...
This function is only used for tests.
2012-10-07 09:49:07 +02:00
Simon Sapin
a0bb1f2752
Have metadata account for CSS transforms.
2012-10-06 22:09:17 +02:00
Simon Sapin
28cb59fc8b
Pre-compute transformation matricies.
...
… so that they are available when getting meta-data.
2012-10-06 11:26:55 +02:00
Simon Sapin
a05470d006
Remove with_size in Document.write_png
...
The method now always returns a tuple with the size.
HTML.write_png however still does not return the size.
2012-10-05 18:27:45 +02:00
Simon Sapin
09ff532828
The Document is back! (But different.)
2012-10-02 18:59:02 +02:00
Simon Sapin
d17ee64fa1
Do not repeat a block’s margin-top after a break.
2012-10-02 15:59:58 +02:00
Simon Sapin
f33c91742d
Get rid of the Document class (finally!)
2012-09-25 16:37:18 +02:00
Simon Sapin
20fe60040d
Document low-level output functions.
2012-09-20 17:57:15 +02:00
Simon Sapin
ac220e9a4d
Refactor the PNG output to use the low-level API
...
… not intermediate ImageSurface objects.
2012-09-18 12:58:58 +02:00
Simon Sapin
6354398139
Add a low-level public API
2012-09-12 19:33:16 +02:00
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
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
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
6809b5b7c9
Switch drawing tests back to RGBA.
2012-07-31 17:30:23 +02:00
Simon Sapin
da74638d3d
Allow both RGB or RGBA PNG files in tests.
2012-07-30 17:33:31 +02:00
Simon Sapin
abf256a810
Merge branch 'master' into pixbuf
2012-07-29 16:53:08 +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
b3c059bc08
Switch to gdk-pixbuf for raster images instead of Pystacia.
2012-07-28 22:11:28 +02:00
Simon Sapin
d3bf05a507
Mark some tests as expected fails on cairo < 1.12
2012-07-18 15:37:37 +02:00
Simon Sapin
0d3d1f1fd5
Collapsed borders intersections should be rectangles, not squares.
2012-07-12 11:10:18 +02:00
Simon Sapin
e955781b91
Fix border-collapse on multiple pages
2012-07-11 19:23:41 +02:00
Simon Sapin
34fc003c57
Paint collapsed table borders
2012-07-11 18:21:20 +02:00
Simon Sapin
279386b850
Unprefix paged media, transforms, and SVG properties
...
The image-rendering, transform, transform-origin and size
properties are now unprefixed.
The prefixed form (eg. -weasy-size) is ignored but gives
a specific warning.
2012-07-04 11:27:20 +02:00
Simon Sapin
cf822b981f
Use the Acid2 version from webstandards.org
...
It uses http://www.webstandards.org/404/ instead of
http://www.damowmow.com/404/ and thus does not have
network problems.
Also, using the new get_png_pages() API we can get
each page separately. No custom stylesheet is needed
anymore.
2012-06-28 17:41:42 +02:00
Simon Sapin
45a09df4a8
Set the network timeout to 1 second for Acid2
...
Acid2 uses http://www.damowmow.com/404/ which apparently has
a broken IPv6 setup.
2012-06-28 14:01:03 +02:00
Simon Sapin
5e61048014
Remove import of a removed module.
2012-06-28 11:59:36 +02:00
Guillaume Ayoub
cd1e5b3e05
Merge branch 'master' into float
...
Conflicts:
weasyprint/layout/preferred.py
weasyprint/text.py
2012-06-22 01:29:26 +02:00
Simon Sapin
040eb765df
Remove backends in favor of methods on Document
...
This much genericity was not that useful.
2012-06-21 17:22:01 +02:00
Simon Sapin
97f3eee889
Refactor text handling
...
* Kill the TextFragment class. Use a set of functions instead.
* Pass around an `enable_hinting` boolean rather than a dummy surface
2012-06-21 17:22:01 +02:00
Simon Sapin
2c445b75b9
'text-align: top' is implemented, remove a hack for Acid 2.
2012-06-08 18:50:20 +02:00
Simon Sapin
09895757ca
Now passing Acid 2!
2012-06-08 17:17:19 +02:00