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

140 Commits

Author SHA1 Message Date
Guillaume Ayoub
5fc60f9041 Fix borders (only works for top now) 2013-07-22 16:11:59 +02:00
Sergey Pikhovkin
8b86643e0e Copy table.column_positions
Copy list if the element is inserted on each page (eg. as https://gist.github.com/pikhovkin/5642563), else expanding table.column_positions
2013-06-18 17:47:39 +04:00
Sergey Pikhovkin
697c52dc00 Copy list
Copy list if the element is inserted on each page (eg. as https://gist.github.com/pikhovkin/5642563), else expanding table.column_positions
2013-06-14 16:32:15 +04:00
Guillaume Ayoub
856890e0b1 Fix dotted and dashed borders 2013-06-13 17:52:39 +02:00
Guillaume Ayoub
8463ba0c46 Cast round() to an int 2013-06-12 21:50:29 +02:00
Guillaume Ayoub
c16953cf3f Fix dotted and dashed borders, fixes all tests
Rounded dotted and dashed borders are still broken
2013-06-10 23:47:10 +02:00
Guillaume Ayoub
34c6fe3de3 Handle ridge and groove 2013-06-07 19:46:35 +02:00
Guillaume Ayoub
7ce1648cf1 Handle inset and outset border styles 2013-06-07 19:29:37 +02:00
Guillaume Ayoub
a9b21387c1 Remove duplicate code 2013-06-07 19:03:59 +02:00
Guillaume Ayoub
1bb50557bf Fix a couple of little things 2013-06-07 17:14:32 +02:00
Guillaume Ayoub
cb2460067b Fix outlines and collapsed borders in tables 2013-06-07 16:52:31 +02:00
Guillaume Ayoub
ca91649f02 Draw rounded border segments
This breaks outlines and collapsed borders
2013-06-07 13:13:27 +02:00
Guillaume Ayoub
3256eebad1 Use better names for variables and methods about rounded boxes 2013-06-06 16:21:56 +02:00
Guillaume Ayoub
f0b8b755bd Draw solid and double borders 2013-06-06 15:58:00 +02:00
Guillaume Ayoub
0345af4d3d First commit about border-radius, works for the background 2013-06-05 18:56:57 +02:00
Guillaume Ayoub
dccd562c6b Don't clip the border when overflow: hidden 2013-06-05 18:45:16 +02:00
Guillaume Ayoub
b766ffac22 Merge branch 'typographic-text-decorations' of git://github.com/ariofrio/WeasyPrint into ariofrio-typographic-text-decorations
Conflicts:
	weasyprint/draw.py
2013-06-03 18:26:08 +02:00
Guillaume Ayoub
0eed4a088f Actually draw multiple lines when multiple values are given to text-decoration 2013-05-24 19:07:53 +02:00
Andres Riofrio
1aea07a33f Read typographic hints from Pango for text decorations 2013-05-17 09:52:05 -07:00
Andres Riofrio
d2c69d09f0 Fix overline not being drawn above the text 2013-05-17 09:48:38 -07:00
Simon Sapin
22b4a95406 Changelog for v0.19.1 2013-04-30 17:08:33 +02:00
Simon Sapin
b57a9e8e0e Use anti-aliasing for dotted borders. It looks better that way. 2013-04-30 11:50:32 +02:00
Simon Sapin
25bab1dc6c Fix #76: repeating <thead> and <tfoot> on every page with border-collapse. 2013-04-30 10:56:43 +02:00
Simon Sapin
4796fd138d Fix painting of inset/outset borders. 2013-04-26 15:00:58 +02:00
Simon Sapin
1cd961fafc Use stroke rather than fill for solid borders. Looks better on PDF. 2013-04-23 16:24:33 +02:00
Simon Sapin
1d1bf9cdc9 Flake8. 2013-04-11 12:08:53 +02:00
Simon Sapin
751d99cc78 Move background sizing and positioning from draw to layout. 2013-04-03 17:46:14 +02:00
Simon Sapin
242f24b576 Refactor background layout. 2013-04-03 17:27:07 +02:00
Simon Sapin
171438f48e 2013 2013-04-03 16:23:48 +02:00
Simon Sapin
0faaceb44f Have Image objects "render themselves" on a cairo Context. 2013-04-03 16:00:31 +02:00
Simon Sapin
e36006ea21 Introduce Image objects, with intrinsic width/height/ratio as attributes. 2013-04-03 13:34:14 +02:00
Simon Sapin
cef113c5a7 Add background-repeat: round 2013-03-30 23:43:19 +01:00
Simon Sapin
b5de53169c Add backgroun-repeat: space 2013-03-30 22:49:47 +01:00
Simon Sapin
86bc8b4978 Fix #66: Resolve images’ auto width from non-auto height and intrinsic ratio. 2013-03-28 12:44:28 +01:00
Simon Sapin
31d258ba84 Bug fix: use each layer’s own painting (clip) area 2013-03-26 14:07:44 +01:00
Simon Sapin
99541864a1 Simplify background-image a bit. 2013-03-26 13:56:11 +01:00
Simon Sapin
3d4c94acdc Prepare for L3 background-repeat. 2013-03-25 19:40:27 +01:00
Simon Sapin
e4f68e2b27 Prepare background-position internals for Level 3 syntax. 2013-03-21 15:46:07 +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
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
cfe59387e9 Whitespace fixes. 2013-01-23 16:41:46 +01:00
Simon Sapin
c70b00b5b8 More WIP: cairocffi and pango cffi. 2012-12-29 01:36:06 +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
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