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
|
28cb59fc8b
|
Pre-compute transformation matricies.
… so that they are available when getting meta-data.
|
2012-10-06 11:26:55 +02:00 |
|
Simon Sapin
|
a564473882
|
Avoid re-using Pattern objects for images.
|
2012-09-26 16:59:40 +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
|
9834ccb7e6
|
Handle all of backgrounds at the end of layout.
|
2012-09-13 11:19:40 +02:00 |
|
Simon Sapin
|
ae26c87bfd
|
Handle background images at the end of layout
|
2012-09-13 10:41:22 +02:00 |
|
Simon Sapin
|
6354398139
|
Add a low-level public API
|
2012-09-12 19:33:16 +02:00 |
|
Simon Sapin
|
463a33c1af
|
Fetch background images early
This removes the need to have a reference to the image cache
in draw.py
|
2012-09-12 18:36:00 +02:00 |
|
Simon Sapin
|
43bccc7345
|
Remove the ContextProxy
Instead, pass around the two objects in every function.
This is a bit heavy, but I find it much cleaner.
|
2012-09-12 17:14:51 +02:00 |
|
Johan Dahlin
|
b0fb7a6e31
|
Convert drawing API to use context
Remove the need for a subclass and make it possible
to pass in other contextes such one created by the printing
functions in gtk+.
|
2012-09-12 16:31:00 +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
|
4abf401f9e
|
Simplify Document and remove magic properties.
|
2012-08-03 13:00:14 +02:00 |
|
Simon Sapin
|
ec8cbc6c24
|
Remove one-line methods in Document.
|
2012-08-03 11:51:58 +02:00 |
|
Simon Sapin
|
163b85bae4
|
Kill Document in draw.py
|
2012-07-12 15:13:08 +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
|
fd96c0df0a
|
Ignore margins on internal table boxes: fix #888
Also ignore padding on table with border-collapse
|
2012-07-11 16:39:17 +02:00 |
|
Simon Sapin
|
712a219803
|
Only disable anti-aliasing on PNG output.
And, for borders, if the width is more than 1 device unit.
|
2012-06-22 15:18:46 +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
|
5bf6172ac5
|
Disable anti-aliasing on underline and other text decrations.
|
2012-06-20 16:29:14 +02:00 |
|
Simon Sapin
|
53a05b2aa7
|
Fix the fix on inline-block painting.
|
2012-06-04 18:49:13 +02:00 |
|
Guillaume Ayoub
|
c3b2f2f440
|
Draw the replaced elements into the content box (not padding box)
|
2012-06-04 17:42:58 +02:00 |
|
Guillaume Ayoub
|
71fc11ea97
|
Draw the borders of inline
|
2012-06-04 16:36:55 +02:00 |
|
Simon Sapin
|
cfda2f1e20
|
Fix the painting order of inline-blocks.
|
2012-06-04 15:09:59 +02:00 |
|
Simon Sapin
|
f890c3ecb0
|
Fix zero-width / zero-height images.
|
2012-06-01 10:02:48 +02:00 |
|
Simon Sapin
|
f743567544
|
Draw page borders.
|
2012-05-30 19:06:30 +02:00 |
|
Simon Sapin
|
a394ab5762
|
Work around cairo to make sure SVG image stay vectors.
|
2012-05-29 19:11:10 +02:00 |
|
Simon Sapin
|
7cc5992fc9
|
Remove obsolete code.
|
2012-05-25 17:21:38 +02:00 |
|
Simon Sapin
|
9a3ec6fc81
|
Many fixes for the W3C test suite.
|
2012-05-25 15:57:13 +02:00 |
|
Guillaume Ayoub
|
f1da53a32a
|
Fix the z-index
|
2012-05-11 16:07:14 +02:00 |
|
Guillaume Ayoub
|
475a924e89
|
Fix the stacking contexts
|
2012-05-11 14:10:11 +02:00 |
|
Guillaume Ayoub
|
632f57dff5
|
Fix angles in transform
|
2012-05-10 22:10:29 +02:00 |
|
Guillaume Ayoub
|
e963367e98
|
Typos
|
2012-05-10 22:09:04 +02:00 |
|
Simon Sapin
|
1ba5b32e7b
|
Tests and fixes for drawing
|
2012-04-04 13:58:06 +02:00 |
|
Simon Sapin
|
88c027117c
|
Do not keep tokens for percentages after validation.
Make (value, unit) namedtuples instead.
Pixel values that could be percentages are not plain numbers anymore.
|
2012-04-03 16:12:25 +02:00 |
|
Simon Sapin
|
46b1d225c7
|
Tests n’ fixes. Lots of them.
|
2012-04-03 11:34:29 +02:00 |
|
Simon Sapin
|
b78f939ee7
|
Remove remaining references to cssutils.
|
2012-03-24 22:10:38 +01:00 |
|
Simon Sapin
|
96feb96574
|
Switch from cssutils to tinycss as the CSS parser
|
2012-03-24 21:32:15 +01:00 |
|
Simon Sapin
|
dcacf9eed0
|
Switch the licence to BSD and rewrite module docstrings/headers
|
2012-03-21 23:26:58 +01:00 |
|
Simon Sapin
|
26de362b99
|
Add proper attribution in AUTHORS
|
2012-03-21 18:40:38 +01:00 |
|
Simon Sapin
|
9875f76995
|
Hello 2012
|
2012-03-21 18:40:38 +01:00 |
|
Simon Sapin
|
ae3c73db68
|
Use a bit more the cairo API.
|
2012-03-07 14:02:07 +01:00 |
|
Simon Sapin
|
ff135aa285
|
Python 3 compat. All tests pass with the same code base!
|
2012-02-17 22:48:20 +01:00 |
|
Simon Sapin
|
cf52aa3aaf
|
Move the whole 'weasy' package to 'weasyprint'
|
2012-02-14 12:49:33 +01:00 |
|