[
http://jira.codehaus.org/browse/DOXIA-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109249
]
David Roussel commented on DOXIA-158:
-------------------------------------
Vincent,
The iText code you link to looks fine. But if I look in
org.apache.maven.doxia.module.itext.ITextSink the verbatim() method doesn't
seem to mention monospaced fonts, even though there is an
ITextFont.getMonoSpacedFont() method. Infact getMonoSpacedFont() is never
called.
Ideally we should have a call to font.setMonospaced(true) in verbatim(), and
call font.setMonospaced(false) in _verbatim().
David
> doxia book with APT verbatim text not monospaced in PDF
> -------------------------------------------------------
>
> Key: DOXIA-158
> URL: http://jira.codehaus.org/browse/DOXIA-158
> Project: Maven Doxia
> Issue Type: Bug
> Components: Module - Itext
> Affects Versions: 1.0-alpha-9
> Environment: Java 5 on WinXP
> Reporter: David Roussel
> Attachments: doxia-test.zip
>
>
> I'm using doxia-maven-plugin 1.0-alpha-9 with APT as an imput source. When
> I generate xhtml then the verbatim text comes out fine as a pre tag. When I
> generate PDF the verbatim text is rendered with a variable width font, thus
> my code examples are all over the place.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira