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

471 Commits

Author SHA1 Message Date
Simon Sapin
30e4fe7dc8 Cleanups 2011-10-14 19:00:22 +02:00
Simon Sapin
d4e1ff9dd6 Rewrite border drawing without the figure classes. 2011-10-14 18:57:17 +02:00
Simon Sapin
f4c2146fea Add option to pass user stylesheets from the command-line. 2011-10-14 17:48:20 +02:00
Simon Sapin
4123cc6a2a Bug fix in page breaking. 2011-10-14 16:58:57 +02:00
Simon Sapin
1d7f96c06d Make profiling easier to read. 2011-10-14 16:13:54 +02:00
Simon Sapin
9e13c20491 Micro-optimization 2011-10-14 16:13:40 +02:00
Simon Sapin
6b97ea15cc Bugfix 2011-10-14 11:50:42 +02:00
Simon Sapin
1695868ce2 Add some page margin in the UA stylesheet. 2011-10-13 18:29:55 +02:00
Simon Sapin
ada521d701 Use FontDescription instead of markup in Pango.
This fixes the font sizes and add support for alpha color on text,
but break letter-spacing.
2011-10-13 18:23:49 +02:00
Simon Sapin
8e3868d372 Simplify getting baseline from Pango. 2011-10-13 17:37:09 +02:00
Simon Sapin
8d1ef82177 Remove margin/border/padding when cutting a block for a page break. 2011-10-13 16:28:26 +02:00
Simon Sapin
549f21c7d3 Bugfix: allow (some) page breaks between blocks, not just between lines. 2011-10-13 16:25:08 +02:00
Simon Sapin
49d235cd0a Bugfix: empty lines caused jump to the top of the page. 2011-10-13 16:21:56 +02:00
Simon Sapin
ea42a9a368 More pointless code changes 2011-10-11 16:04:00 +02:00
Simon Sapin
a6c6553532 Micro-optimizations yay! 2011-10-11 14:11:39 +02:00
Simon Sapin
67bb96ea06 Bugfixes 2011-10-11 12:25:28 +02:00
Simon Sapin
fe6182b4a3 Make PIL optional 2011-10-11 12:08:22 +02:00
Simon Sapin
77ba220faf Fix initial value for font-family 2011-10-11 11:30:42 +02:00
Simon Sapin
c461f541cb Simplify some code. 2011-10-11 11:26:20 +02:00
Simon Sapin
55be2cfa6a Partial Python 3 compatibility. 2011-10-10 16:39:41 +02:00
Simon Sapin
35b23a5dd6 Add a tox config. 2011-10-10 16:37:16 +02:00
Simon Sapin
65ef970bd0 Packaging fixes. 2011-10-10 15:20:26 +02:00
Simon Sapin
c4f1a95cce Fix setup.py test 2011-10-08 21:18:39 +02:00
Simon Sapin
446a9390cc Bugfix: for a Layout y=0 is top, but for LayoutLine it’s baseline. 2011-10-08 20:57:59 +02:00
Simon Sapin
8dfae70560 Do not create new TextFragment’s in draw, use the ones from layout. 2011-10-08 20:38:33 +02:00
Simon Sapin
8115e07aa5 Make one TextFragment for each TextBox instead of two during layout. 2011-10-08 19:37:17 +02:00
Simon Sapin
65728142d9 Optimize StyleDict access. 2011-10-08 16:48:54 +02:00
Simon Sapin
8a0f066ad2 Use _ instead of - for CSS property names everywhere. 2011-10-08 15:46:41 +02:00
Simon Sapin
81eb4a62df Remove unused import. 2011-10-08 14:47:05 +02:00
Simon Sapin
fadb60c14f Use strings or numbers instead of lists of cssutils Value objects.
... where appropriate. This remove much of the need for functions like
get_single_keyword and get_single_pixel_value.
2011-10-08 14:41:12 +02:00
Simon Sapin
24cf56c96a Replace bad code by something worse. 2011-10-07 11:53:52 +02:00
Simon Sapin
a387f8c4c6 Bug/typo fix. 2011-10-07 11:36:08 +02:00
Simon Sapin
41ca2d74fe Remove the now-unused .parent attribute on boxes. 2011-10-06 17:52:06 +02:00
Simon Sapin
ccf656ac1c Remove now-unused Box.containing_block_size 2011-10-06 17:48:30 +02:00
Simon Sapin
887ab05d87 Remove usage of Box.containing_block_size in markers.py 2011-10-06 17:47:04 +02:00
Simon Sapin
81f43a92cf Remove usage of Box.containing_block_size in inlines.py 2011-10-06 16:22:54 +02:00
Simon Sapin
ac9e4ae458 Remove usage of Box.containing_block_size in blocks.py 2011-10-06 16:20:03 +02:00
Simon Sapin
ed5c87faea Remove usage of Box.find_page_ancestor 2011-10-06 15:36:19 +02:00
Simon Sapin
54721e2c86 Add config for gorun. 2011-10-06 12:19:10 +02:00
Simon Sapin
2efd4d7cad Remove the now-unused white_space_processing function. 2011-10-06 12:12:39 +02:00
Simon Sapin
754b2b8e06 Rewrite whitespace processing without mutating boxes. 2011-10-05 13:01:44 +02:00
Simon Sapin
8ce73b5b59 Merge code for layout of line boxes and inline boxes. 2011-10-04 15:22:42 +02:00
Simon Sapin
aae09d39d2 Update a docstring. 2011-10-04 15:03:58 +02:00
Simon Sapin
83f3ca1617 Make Box.copy() semi-private: Box._copy() 2011-10-04 14:56:23 +02:00
Simon Sapin
aded60e6f7 Use the Liberation font in more tests. 2011-10-04 14:49:13 +02:00
Guillaume Ayoub
e97764c8fa Merge branch 'master' of github.com:Kozea/WeasyPrint
Conflicts:
	weasy/layout/blocks.py
2011-10-03 18:59:01 +02:00
Guillaume Ayoub
063c3b0331 Make the parent box children immutable 2011-10-03 18:57:26 +02:00
Simon Sapin
b587438c33 Move page break handling out of inlines.py 2011-10-03 17:55:41 +02:00
Guillaume Ayoub
75220039ce Use standard fonts for the tests 2011-10-03 16:37:02 +02:00
Guillaume Ayoub
ad1de95f4a Fix some widths and fonts in the layout tests 2011-10-03 16:13:19 +02:00