You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jeremias Maerki <de...@jeremias-maerki.ch> on 2006/08/02 22:42:19 UTC

Re: PDFTranscoder custom fonts

You did everything correctly. The problem was that this functionality
got broken during the last few months and you're the first to notice.
I've fixed it: http://svn.apache.org/viewvc?rev=428137&view=rev

We should really automate some tests for things like that but it's a
little difficult to write JUnit test which test the generated PDF files
without a PDF library that can read PDF. I guess one day we'll have to
adopt PDFBox.

Please let me know if it works now for you, too.

On 28.07.2006 00:40:28 Antonio Broughton wrote:
> Hi,
> 
> I have a question about using custom fonts when converting from SVG to
> PDF using PDFTranscoder.
> 
> There is a zip file containing all the information available at
> http://www.flerwin.net/fopquestion.zip
> 
> It includes
>  * Java source code
>  * SVG trying to convert to PDF
>  * XML generated from TTFReader
>  * The TTF font
>  * Configuration file read in via Avalon
> 
> The problem that I am having is that I cannot add the Tahoma font, so
> that the PDF contains the same font as that in the SVG.
> 
> As you can see in the code, I have followed the example given at
> http://wiki.apache.org/xmlgraphics-fop/SvgNotes/PdfTranscoderTrueTypeEmbedding
> 
> Am I doing something wrong?
> 
> I am currently using SVN Trunk version of Batik and SVN Trunk version FOP


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: PDFTranscoder custom fonts

Posted by Antonio Broughton <an...@flerwin.net>.
Hi,

Yes it now works fine.

Thanks for that
Antonio Broughton


Jeremias Maerki wrote:
> You did everything correctly. The problem was that this functionality
> got broken during the last few months and you're the first to notice.
> I've fixed it: http://svn.apache.org/viewvc?rev=428137&view=rev
>
> We should really automate some tests for things like that but it's a
> little difficult to write JUnit test which test the generated PDF files
> without a PDF library that can read PDF. I guess one day we'll have to
> adopt PDFBox.
>
> Please let me know if it works now for you, too.
>
> On 28.07.2006 00:40:28 Antonio Broughton wrote:
>   
>> Hi,
>>
>> I have a question about using custom fonts when converting from SVG to
>> PDF using PDFTranscoder.
>>
>> There is a zip file containing all the information available at
>> http://www.flerwin.net/fopquestion.zip
>>
>> It includes
>>  * Java source code
>>  * SVG trying to convert to PDF
>>  * XML generated from TTFReader
>>  * The TTF font
>>  * Configuration file read in via Avalon
>>
>> The problem that I am having is that I cannot add the Tahoma font, so
>> that the PDF contains the same font as that in the SVG.
>>
>> As you can see in the code, I have followed the example given at
>> http://wiki.apache.org/xmlgraphics-fop/SvgNotes/PdfTranscoderTrueTypeEmbedding
>>
>> Am I doing something wrong?
>>
>> I am currently using SVN Trunk version of Batik and SVN Trunk version FOP
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org