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

166 Commits

Author SHA1 Message Date
Simon Sapin
41e14d6e14 Overall niceties. 2012-07-29 18:39:16 +02:00
Simon Sapin
9476dd99b7 Add a warning when Pango is too old. 2012-07-29 16:37:13 +02:00
Simon Sapin
cf9f982ec5 Default to PyGTK instead of PyGObject introspection. 2012-07-29 16:25:43 +02:00
Simon Sapin
0095d080b8 Always pass a list as font-family
... otherwise ','.join() will take a string character-by-character …
2012-07-28 19:23:54 +02:00
Simon Sapin
4730e414ef Add PyGTK compatiblity (vs. PyGObject 3.x)
First try to import Pango through PyGObject 3.x and introspection.

If that fails or if the WEASYPRINT_USE_PYGTK is set and non-empty,
fall back on PyGTK and the "old-style" bindings without introspection.
2012-07-23 19:01:23 +02:00
Simon Sapin
cca18bdfe9 Kill Document in pdf.py and text.py 2012-07-12 16:14:35 +02:00
Simon Sapin
c2a88ec8df Use bare commas without spaces for Pango.FontDescription.set_family
Fix a pontential bug reported by Peter Moulder

pjrm: In text.py's call to set_family, note that it's safer
to use ','.join (i.e. without a space).  Some versions of
pango (possibly including the current one) have a bug in
some of the places where a family list is parsed, but using
a plain comma (without space) fixes that.
2012-07-10 15:17:42 +02:00
Guillaume Ayoub
ab5ecd8346 Fix some tests 2012-06-22 11:40:15 +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
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
Guillaume Ayoub
bc27971ac6 Typo fixes 2012-05-31 01:14:15 +02: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
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