Simon Sapin
|
1e3e96a8bd
|
Fix unnecessary line break in floats.
|
2013-04-22 17:26:41 +02:00 |
|
Simon Sapin
|
ff98eca1bd
|
Drop support for CFFI < 0.6
|
2013-04-11 10:39:47 +02:00 |
|
Simon Sapin
|
5965dc6bfd
|
Merge remote-tracking branch 'origin/hyphenation'
Conflicts:
weasyprint/text.py
|
2013-04-08 11:00:19 +02:00 |
|
Simon Sapin
|
43419f8225
|
More working around floating point errors when shrink-to-fit = max-content.
|
2013-04-08 10:54:59 +02:00 |
|
Simon Sapin
|
6bcc6edc0f
|
Clean up ex/ch, add a test.
|
2013-04-05 12:22:28 +02:00 |
|
Guillaume Ayoub
|
50ac168b94
|
Clean code and fix tests
|
2013-04-04 04:39:25 +02:00 |
|
Guillaume Ayoub
|
9f18ce63c3
|
Handle ex and ch units
|
2013-04-04 02:38:39 +02:00 |
|
Simon Sapin
|
171438f48e
|
2013
|
2013-04-03 16:23:48 +02:00 |
|
Simon Sapin
|
8a28f0f08a
|
Compat with cairocffi 0.4 / CFFI 0.6
|
2013-03-30 20:55:23 +01:00 |
|
Simon Sapin
|
7fbd46f734
|
Work around floating point errors when shrink-to-fit = max-content.
|
2013-03-21 15:51:16 +01:00 |
|
Guillaume Ayoub
|
0e62dd3fb1
|
Merge branch 'master' into hyphenation
|
2013-03-11 23:45:47 +01:00 |
|
Simon Sapin
|
e8581dbd09
|
Ooops. Fix g_type_init() call.
|
2013-03-11 15:32:29 +01:00 |
|
Simon Sapin
|
cbba64983d
|
Try to make glib happy, call g_type_init()
|
2013-03-08 15:09:45 +01:00 |
|
Guillaume Ayoub
|
fe9382d716
|
Remove print()
|
2013-03-06 18:53:43 +01:00 |
|
Guillaume Ayoub
|
efc089aceb
|
Add hyphenate-limit-chars
|
2013-03-02 04:41:32 +01:00 |
|
Guillaume Ayoub
|
10d917d1a2
|
Add hyphenate-limit-zone
|
2013-03-02 03:42:36 +01:00 |
|
Guillaume Ayoub
|
b5e1fafa5d
|
Add hyphenate-character
|
2013-03-02 02:45:48 +01:00 |
|
Guillaume Ayoub
|
987feb6a84
|
Clean the line splitter
|
2013-03-02 01:33:37 +01:00 |
|
Simon Sapin
|
c49f060c9f
|
Add support for -weasy-hyphens: none, cache hyphenation dictionaries
|
2013-02-27 13:44:57 +01:00 |
|
Simon Sapin
|
b7ed4a906f
|
Tweak hyphenation and add a micro-test.
|
2013-02-26 19:45:00 +01:00 |
|
Simon Sapin
|
54df780ae7
|
Require Pyphen.
It is pure-python and self-contained (with dictionaries)
|
2013-02-26 18:50:57 +01:00 |
|
Simon Sapin
|
43489dec07
|
Merge branch 'master' into hyphenation
Conflicts:
weasyprint/text.py
|
2013-02-26 18:16:59 +01:00 |
|
Simon Sapin
|
f7e78c488f
|
Back to native strings for CFFI, still required on PyPy :(
|
2013-02-26 17:12:08 +01:00 |
|
Simon Sapin
|
46715ad7a2
|
Try alternative shared library names for Windows.
|
2013-02-26 15:05:53 +01:00 |
|
Simon Sapin
|
06a9ad8c91
|
Unicode strings are fine with CFFI 0.5
|
2013-02-25 16:38:54 +01:00 |
|
Simon Sapin
|
d310ffe47d
|
Merge branch 'cffi'
Conflicts:
weasyprint/text.py
|
2013-02-25 15:23:59 +01:00 |
|
Guillaume Ayoub
|
c789ba2c91
|
Don't strip leading non-breaking spaces
|
2013-02-01 01:57:12 +01:00 |
|
Simon Sapin
|
a1109346df
|
Update for cairocffi changes.
|
2012-12-30 11:08:55 +01:00 |
|
Simon Sapin
|
294be548b0
|
All tests passsing with cffi!!
|
2012-12-29 14:55:59 +01:00 |
|
Simon Sapin
|
5baee96712
|
Use pixbuf through cffi.
|
2012-12-29 11:58:52 +01:00 |
|
Simon Sapin
|
c70b00b5b8
|
More WIP: cairocffi and pango cffi.
|
2012-12-29 01:36:06 +01:00 |
|
Simon Sapin
|
d2040ac77a
|
WIP: use Pango and cairo through cffi.
Use cairocffi
Ditch pycairo, PyGTK and PyGobject-introspection.
|
2012-12-28 23:17:04 +01:00 |
|
Guillaume Ayoub
|
ee0a53ea1d
|
Merge branch 'master' into hyphenation
Conflicts:
weasyprint/text.py
|
2012-12-26 16:44:23 +01:00 |
|
Guillaume Ayoub
|
09aacdc669
|
Use pyphen instead of hyphenator
|
2012-12-26 13:25:18 +01:00 |
|
Simon Sapin
|
8995ce77d9
|
Merge remote-tracking branch 'origin/trailingspaces'
|
2012-12-12 16:06:20 +01:00 |
|
Simon Sapin
|
f12deb8fc6
|
Work around a segfault on Python 3.2.
Something bad happend when de-allocating a module-level BytesIO()
and dummy PDFSurface.
|
2012-12-12 16:02:41 +01:00 |
|
Guillaume Ayoub
|
fbc2e33b01
|
Add the -weasy-hyphens CSS property
|
2012-12-08 22:50:08 +01:00 |
|
Guillaume Ayoub
|
d4fffabb8a
|
Add base code and dictionaries for hyphenation
|
2012-12-08 21:43:16 +01:00 |
|
Guillaume Ayoub
|
2325b4c2f4
|
Give the line length to split_first_line
|
2012-11-24 16:14:49 +01:00 |
|
Guillaume Ayoub
|
1eb22ed63b
|
Remove spaces at the end of the text lines
|
2012-11-22 23:52:50 +01:00 |
|
Guillaume Ayoub
|
d2dea8ed56
|
Fix the size of the first line
|
2012-11-22 21:23:42 +01:00 |
|
Guillaume Ayoub
|
0b87357daf
|
Don't always use the whole text to get the first line of a pango layout
|
2012-11-22 21:21:28 +01:00 |
|
Simon Sapin
|
a7131bd10f
|
Remove unused imports
|
2012-10-05 22:12:19 +02:00 |
|
Simon Sapin
|
17621bced0
|
Fix a crash when pygtk can be imported but not pango.
PyGObject 2 works on Python 3 and has a 'pygtk' package.
Importing pygtk does not imply that pango is available through it.
|
2012-10-05 21:49:26 +02:00 |
|
Simon Sapin
|
f8f38f0d35
|
Compat with early pycairo versions.
|
2012-09-25 16:37:50 +02:00 |
|
Simon Sapin
|
35540becb9
|
Add a work-around for some PyGTK installations.
|
2012-09-11 18:26:39 +02:00 |
|
Simon Sapin
|
39b553fae7
|
Add support for font-stretch, fix #7
The value is passed to Pango as-is. It may have no effect if
(for example) the chosen font has no expanded variant.
|
2012-08-17 17:37:33 +02:00 |
|
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 |
|