Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-24 Thread Daniel Noll
David Morales wrote: Hi Daniel... I have the same problem as yours, where i must show pdf files in a something-like-swing environment. Finally, i'm trying with SWT (Eclipse) with ActiveX components embedding Look at http://www-128.ibm.com/developerworks/library/os-activex/ And give

Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-24 Thread David Morales
Hi Daniel... I have the same problem as yours, where i must show pdf files in a something-like-swing environment. Finally, i'm trying with SWT (Eclipse) with ActiveX components embedding Look at http://www-128.ibm.com/developerworks/library/os-activex/ And give a try to embed a expl

Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-23 Thread Daniel Noll
Cheffe wrote: I know of a java pdf-viewer that is gpl www.jpedal.org I tested it some time ago. That viewer allows to load TT T1C T1 fonts that are shown in a awt-panel. Perhaps you find a solution in this source-code. Shame it's GPL... and also slower (3 seconds per page compared to around 2

Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-23 Thread Cheffe
I know of a java pdf-viewer that is gpl www.jpedal.org I tested it some time ago. That viewer allows to load TT T1C T1 fonts that are shown in a awt-panel. Perhaps you find a solution in this source-code. Daniel Noll-3 wrote: > > Daniel Noll wrote: >> I will try doing the exact opposite of my or

Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-22 Thread Daniel Noll
Daniel Noll wrote: I will try doing the exact opposite of my original strategy. :-) Nope, no dice. The internals of the Java2D rendering code do things like casting all fonts to a FontMetricsMapper, so unless I make all fonts of that class it's not going to work. Right now I'm trying to ha

Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-22 Thread Daniel Noll
Jeremias Maerki wrote: What you could try is to somehow use our own font subsystem's font metrics to drive glyph placement in Java2D, i.e. the exact opposite of what you tried just now. IMO that has a better chance to meet your needs if you can't use a PDF-to-TIFF conversion. We have considered

Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-22 Thread Jeremias Maerki
On 22.01.2007 09:16:25 Vincent Hennebert wrote: > Hi Daniel, > > Daniel Noll a écrit : > > Hi all. > > > > There is a requirement in our system where PDF and TIFF output must have > > the same content on every page. Because of this, we need to use > > identical font metrics for these two render

Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-22 Thread Jeremias Maerki
As long as you stay with the Base 14 fonts (Helvetica, Times, Courier, Symbol and ZapfDingbats) there are probably no problems. But as soon as you try custom fonts you'll be disappointed. Java2D does not have the capabilities we need/want for the quality of output we want to achieve. For example, w

Re: Font metrics, AWT vs. PDF and a possible workaround

2007-01-22 Thread Vincent Hennebert
Hi Daniel, Daniel Noll a écrit : > Hi all. > > There is a requirement in our system where PDF and TIFF output must have > the same content on every page. Because of this, we need to use > identical font metrics for these two renderers. > > By default, the two render differently. The widths of

Font metrics, AWT vs. PDF and a possible workaround

2007-01-21 Thread Daniel Noll
Hi all. There is a requirement in our system where PDF and TIFF output must have the same content on every page. Because of this, we need to use identical font metrics for these two renderers. By default, the two render differently. The widths of the fonts are slightly different, so they w