Last modified: 2009-08-27 10:00:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21223, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19223 - PDF rendering now accepts inline font sizes but doesn't adjust line spacing to suit
PDF rendering now accepts inline font sizes but doesn't adjust line spacing t...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: PediaPress Development Team
http://en.wikibooks.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-15 17:58 UTC by Graeme E. Smith
Modified: 2009-08-27 10:00 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Graeme E. Smith 2009-06-15 17:58:57 UTC
When using large fonts, the updated collection extension now accepts inline font-sizes, but because it doesn't also adjust the line feed sizing at the same rate, lines overwrite each other causing them to gather at the top of the page, in a big mess.

Line feed spacing should be adjusted to suite font sizes.
Comment 1 PediaPress Development Team 2009-06-16 09:34:47 UTC
Could you please supply an example article where font sizing is a problem.
Comment 2 Graeme E. Smith 2009-06-16 14:10:02 UTC
Sure try the following:

<p style="text-align:center;font-size:480%;font-weight:bold;">LINE ONE</p>
<p style="text-align:center;font-size:480%;font-weight:bold;">LINE TWO</p>

In wikilanguage this will result in two separate lines of text, but when converted to PDF
the second line overwrites the first one because the line spacing is not being adjusted to suite the font size.
Comment 3 PediaPress Development Team 2009-06-16 14:21:48 UTC
Ok, I can confirm the problem. Interestingly enough, if inline spans are used,  the Mediawiki renders the on top of each other but the PDF writer does it right...

Check http://simple.pediapress.com/w/index.php/MarkupReference/FormatterExample#Paragraphs for examples.

Anyways I'll look into the problem you mention above

Comment 4 Volker Haas 2009-06-25 08:57:46 UTC
The problem with overlapping paragraphs is due to a bug in the PDF toolkit (reportlab) we're using. I submitted the bug: http://two.pairlist.net/pipermail/reportlab-users/2009-June/008483.html

As soon as the bug is fixed I'll update the reportlab version.
Comment 5 Volker Haas 2009-08-27 10:00:30 UTC
The latest reportlab version is now used in mwlib.ext. This fixes the above issue

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links