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

57 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
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
ea42a9a368 More pointless code changes 2011-10-11 16:04:00 +02:00
Simon Sapin
fe6182b4a3 Make PIL optional 2011-10-11 12:08:22 +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
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
8a0f066ad2 Use _ instead of - for CSS property names everywhere. 2011-10-08 15:46:41 +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
a387f8c4c6 Bug/typo fix. 2011-10-07 11:36:08 +02:00
Simon Sapin
ed5c87faea Remove usage of Box.find_page_ancestor 2011-10-06 15:36:19 +02:00
Simon Sapin
7d0320afd5 Switch to UTF8 everywhere in text boxes instead of unicode. 2011-09-30 17:18:53 +02:00
Simon Sapin
4e23fda34c Make TextFragment handle text and style, not a textbox.
Later we can slice the text we pass to it.
2011-09-30 12:23:00 +02:00
Simon Sapin
ecd95dacda Simplify TextFragment again. 2011-09-30 12:22:58 +02:00
Simon Sapin
7d6b896487 Simplify TextFragment further. 2011-09-27 15:41:55 +02:00
Simon Sapin
7fc4e56396 Simplify and merge TextFragment and TextLineFragment. 2011-09-27 14:48:52 +02:00
Guillaume Ayoub
fed326db1e Revert the font-size: 0 detection 2011-09-02 17:42:00 +02:00
Guillaume Ayoub
c0ea590307 Use Pango with introspection, glyphs not drawn and one test broken 2011-09-02 01:10:55 +02:00
Simon Sapin
dfd496b58a Factor common code into Box.find_page_ancestor() 2011-08-26 15:28:37 +02:00
Simon Sapin
ebb3258f18 Do not make a TextFragment at all for text with font-size: 0 2011-08-26 15:27:41 +02:00
Simon Sapin
a7961ff98d Move text drawing from CairoContext to TextFragment. 2011-08-26 15:24:42 +02:00
Salem Harrache
eaec6b9576 Bug fix : use FakeTextLineFragment for textbox with font-size 0 2011-08-26 13:56:00 +02:00
Simon Sapin
fc4c4863df Cache images to avoid downloading them over and over.
(In particular, page background images were downloaded for each page.)
2011-08-25 22:16:04 +02:00
Simon Sapin
ebbeaffa8f Handle alt-text on images. 2011-08-25 17:33:44 +02:00
Simon Sapin
344f59fd3a Fix missing content at page breaks. 2011-08-24 18:27:05 +02:00
Salem Harrache
eb37372233 Merge branch 'master' of github.com:Kozea/WeasyPrint 2011-08-24 15:55:03 +02:00
Simon Sapin
d6575d8479 Draw page borders and backgrounds. 2011-08-24 15:44:50 +02:00
Salem Harrache
ea2752be1a draw text-decoration (underline/overline/line-through) in draw package and not anymore in TextFragment 2011-08-24 14:58:25 +02:00
Guillaume Ayoub
0afd621564 Clean weasy/draw/helpers 2011-08-23 11:42:40 +02:00
Salem Harrache
682a34006f Merge branch 'master' of github.com:Kozea/WeasyPrint
Conflicts:
	weasy/draw/helpers.py
	weasy/layout/__init__.py
	weasy/layout/blocks.py
	weasy/layout/inlines.py
2011-08-22 18:33:20 +02:00
Salem Harrache
c0e912876f add InlineContext object for backtracking linebreak 2011-08-22 18:20:23 +02:00
Guillaume Ayoub
d041826390 Clean weasy/draw/* 2011-08-22 17:36:07 +02:00
Salem Harrache
a1fa87233b Merge branch 'master' of github.com:Kozea/WeasyPrint 2011-08-22 10:17:43 +02:00
Salem Harrache
00dca74712 fix image render in draw helpers 2011-08-22 10:17:37 +02:00
Simon Sapin
7e6e9fff1e Return early in draw_border when there is no border. 2011-08-21 00:14:49 +02:00
Simon Sapin
ad3120087e Add support for glyph-based list markers. 2011-08-20 15:07:14 +02:00
Salem Harrache
f25805ce53 add PIL in install_requires 2011-08-19 15:50:03 +02:00
Salem Harrache
2bf574b27c Merge branch 'master' of github.com:Kozea/WeasyPrint
Conflicts:
	weasy/tests/test_layout.py
2011-08-17 18:25:14 +02:00
Salem Harrache
e39a279c80 add support for inline image and many image formats with PIL 2011-08-17 18:21:52 +02:00
Simon Sapin
0545089223 .get_width is only on PNGSurface, not on PDFSurface for some reason... 2011-08-17 18:14:54 +02:00
Salem Harrache
4fffd0cb93 a lot of changes in the inline formatting context algorithm : add support to inlinebox borders 2011-08-17 14:01:06 +02:00
Simon Sapin
f639f4f7e0 Rename the weasy.css.utils module to weasy.css.values 2011-08-15 13:03:09 +02:00
Simon Sapin
1113361797 Pyflakes cleanups. 2011-08-12 15:04:45 +02:00
Simon Sapin
a6be2af251 Implement background-attachement: fixed. 2011-08-11 15:55:01 +02:00
Simon Sapin
48d8c9ac52 Bug fix for background-position. 2011-08-11 11:15:41 +02:00
Simon Sapin
cef8ee7c22 Implement background-position. 2011-08-10 19:33:16 +02:00
Simon Sapin
c8104634c3 Implement repeat-x and repeat-y 2011-08-10 16:52:34 +02:00