Re: 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 wrot

RE: Re how to embed a font programatically

2006-04-18 Thread Karl Roberts
h. -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Monday, 27 March 2006 5:24 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Re how to embed a font programatically Hi Karl On 27.03.2006 05:39:01 Karl Roberts wrote: > Hi Jeremias, > Don't worry

RE: Re how to embed a font programatically

2006-03-27 Thread Karl Roberts
: Monday, 27 March 2006 5:24 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Re how to embed a font programatically 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 ch

Re: 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 d

RE: Re how to embed a font programatically

2006-03-26 Thread Karl Roberts
String path)" I'd have used it. Cheers Karl -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Sunday, 26 March 2006 1:45 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Re how to embed a font programatically Karl, sorry for the huge delay. When

Re: Re how to embed a font programatically

2006-03-25 Thread Jeremias Maerki
synchronized (tlAgent) { > if (tlAgent.get() == null) { > tlAgent.set(foUserAgent); > ret = true; > } > } > return ret; > } > } >

RE: Re how to embed a font programatically

2006-02-26 Thread Karl Roberts
Subject: RE: 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 URI'

RE: Re how to embed a font programatically

2006-02-26 Thread Karl Roberts
return ret; } } Any thoughts on how this could be improoved and added to the Trunk so that I don't have to maintain a separate branch of FOP? Cheers Karl Roberts -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 February 2

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=379810&view=rev More comments inline... On 23.02.2006 07:02:33 Karl Roberts wrote: > Hi I built a URIResolver that reads URL's like: > > servlet-context:/WEB-I

RE: Re how to embed a font programatically

2006-02-22 Thread Karl Roberts
lto:[EMAIL PROTECTED] 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 implementa

Re: Re how to embed a font programatically

2006-02-22 Thread Jeremias Maerki
PROTECTED] > 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 &g

RE: Re how to embed a font programatically

2006-02-21 Thread Karl Roberts
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 ca

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 o

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 UR

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

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 befor