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
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
: 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
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
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
synchronized (tlAgent) {
> if (tlAgent.get() == null) {
> tlAgent.set(foUserAgent);
> ret = true;
> }
> }
> return ret;
> }
> }
>
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'
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo