Re: SOLVED - sort of Re how to embed a font programatically

2006-04-19 Thread Jeremias Maerki
Karl, thanks for the heads-up. One comment on your Java class: To improve performance you should reuse the FopFactory and the TransformerFactory instead of constructing them each time. See also: http://xmlgraphics.apache.org/fop/trunk/embedding.html#basics On 19.04.2006 02:09:24 Karl Roberts

RE: SOLVED - sort of Re how to embed a font programatically

2006-04-18 Thread Karl Roberts
-Original Message- From: Karl Roberts Sent: Tuesday, 28 March 2006 8:48 AM To: fop-users@xmlgraphics.apache.org Subject: RE: SOLVED - sort of Re how to embed a font programatically Cheers Jeremias, FYI BEFORE you fix it, the issue exists in another place too! When embedding a TTF font (before

RE: SOLVED - sort of Re how to embed a font programatically

2006-03-26 Thread Karl Roberts
-Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Sunday, 26 March 2006 1:45 AM To: fop-users@xmlgraphics.apache.org Subject: Re: SOLVED - sort of Re how to embed a font programatically Karl, sorry for the huge delay. When I don't have a patch marked as such in our Bugzilla

Re: SOLVED - sort of Re how to embed a font programatically

2006-03-26 Thread Jeremias Maerki
Hi Karl On 27.03.2006 05:39:01 Karl Roberts wrote: Hi Jeremias, Don't worry next time I'll create a patch for bugzilla! :-) Where are the changes so I can test them? In our Subversion repository in Trunk, of course. See: http://xmlgraphics.apache.org/fop/download.html#source You should

Re: SOLVED - sort of Re how to embed a font programatically

2006-03-25 Thread Jeremias Maerki
:[EMAIL PROTECTED] Sent: Thursday, 23 February 2006 9:56 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Re how to embed a font programatically Have you seen my other post? I've implemented exactly what I proposed to you and put it in FOP Trunk: http://svn.apache.org/viewcvs?rev

RE: SOLVED - sort of Re how to embed a font programatically

2006-02-26 Thread Karl Roberts
to maintain a separate branch of FOP? Cheers Karl Roberts -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 February 2006 9:56 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Re how to embed a font programatically Have you seen my other post? I've

RE: SOLVED - sort of Re how to embed a font programatically

2006-02-26 Thread Karl Roberts
Subject: RE: SOLVED - sort of Re how to embed a font programatically Hi Jeremias, Thanks for the update to Trunk, Your code was a bit tidier than mine, but did the same thing, However I still got the NullPointerException. The crux of the problem was that The URIReader was only being used to resolve

Re: Re how to embed a font programatically

2006-02-23 Thread Jeremias Maerki
Have you seen my other post? I've implemented exactly what I proposed to you and put it in FOP Trunk: http://svn.apache.org/viewcvs?rev=379810view=rev More comments inline... On 23.02.2006 07:02:33 Karl Roberts wrote: Hi I built a URIResolver that reads URL's like:

RE: Re how to embed a font programatically

2006-02-22 Thread Karl Roberts
] Sent: Tuesday, 21 February 2006 8:17 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Re how to embed a font programatically I haven't done this from outside FOP, yet, but I can give you a suggestion that I'd prefer in your case: Write a URIResolver implementation that returns StreamSource

Re: Re how to embed a font programatically

2006-02-21 Thread Jeremias Maerki
I haven't done this from outside FOP, yet, but I can give you a suggestion that I'd prefer in your case: Write a URIResolver implementation that returns StreamSource instances for specific URIs. You can take FOURIResolver as an example for how to do that. You can then set the URIResolver instance

RE: Re how to embed a font programatically

2006-02-21 Thread Karl Roberts
to embed a font programatically I haven't done this from outside FOP, yet, but I can give you a suggestion that I'd prefer in your case: Write a URIResolver implementation that returns StreamSource instances for specific URIs. You can take FOURIResolver as an example for how to do that. You can then set

Re how to embed a font programatically

2006-02-20 Thread Karl Roberts
Hi, Did you ever manage to do this? I need to do something similar because my embedded FOP is running in a Webapp and the font metric file and the TTF file are hidden inside the WEB-INF directory and so the metric-url and embed-url in my fop-config is no good (even if they were accessible via a

Re: how to embed a font programatically

2006-01-26 Thread Jeremias Maerki
Looking at the source code, you'd need to do the following: - Subclass the Renderer implementation (ex. PDFRenderer) so you gain access to the protected fontList member variable. - Fill the fontList variable much like FontSetup.buildFontListFromConfiguration() does. This code will need to run

Re: how to embed a font programatically

2006-01-26 Thread Uwe Klosa
Hi Stefan I'm using my own fonts and the userconfig file. All fonts, metrics and configuration are stored in my web application. The bug with the base URL is solved in svn trunk. The application works just fine. Unfortunately I can't help you with with the configuration of fonts. Cheers Uwe