Re: fop not handling svn rotated text on linux

2011-06-30 Thread Andreas L. Delmelle
On 01 Jul 2011, at 00:25, Rob Sargent wrote:

> Even with auto-detect on?

In that case, the answer to my question would be: "Yes, FOP is configured to 
look elsewhere."

Still, it just occurred to me that the font definition you added, would only 
influence the specifications of "font" and "font-family" in the FO, or 
"Helvetica" specs passed by Batik to FOP. The latter is precisely what does 
*not* happen, and causes the issue. Batik asks Java for "Helvetica" but gets 
something different. This font, however, is apparently not known to FOP. At 
least, not by that name...

So, first thing to do, is to find out exactly which font Java AWT *does* give 
to Batik for "Helvetica". Then we have to find out why FOP doesn't recognize it.

Concerning the observation that it renders correctly if you use a 'wrong' 
font-family specification: that might be a worthwhile option to explore. Which 
exact font does Batik revert to in that case...?
BTW: What exactly does that stack trace point to that you mentioned?


Regards

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



Re: fop not handling svn rotated text on linux

2011-06-30 Thread Rob Sargent
I've now copied all the FreeSans files into the distribution (an eclipse
plugin based setup) and expressly call for FreeSans in the svg file. 
The result is much the same as from relying on auto-detect: Just a
different spacing problem from that which we get when we call for
Helvetica: The J and o are too widely spaced; the i and the n are touching.

Just a reminder: the svg files look fine (and indistinguishable)  with
either "FreeSans" or "Helvetica". It's just the pdf that is problematic.



On 06/30/2011 04:12 PM, Andreas L. Delmelle wrote:
> On 30 Jun 2011, at 23:47, Rob Sargent wrote:
>
>> The news about the mac is reassuring, thanks.
>>
>> So far I've swapped out the alias for Numbus Sans L for FreeSans in
>> /etc/fonts/conf.avail/30-metric-aliases.conf: fonts-config; fc-cache;
>> placed the following in my fop config xml
>>
>>> weight="normal"/>
>>
> Wait a second... 
> Did you also configure FOP to locate the "FreeSans.ttf" file? 
> See: http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics, and beyond
>
> If FOP is not specifically told to look elsewhere, and it would not find that 
> TTF in the working directory, then as a result, it would still fall back to 
> the default sans-serif and use the inappropriate metrics.
>
>
> Regards,
>
> Andreas
> ---
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

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



Re: fop not handling svn rotated text on linux

2011-06-30 Thread Rob Sargent
Even with auto-detect on?

Wait a second...
> Did you also configure FOP to locate the "FreeSans.ttf" file? 
> See: http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics, and beyond
>
> If FOP is not specifically told to look elsewhere, and it would not find that 
> TTF in the working directory, then as a result, it would still fall back to 
> the default sans-serif and use the inappropriate metrics.
>
>
> Regards,
>
> Andreas
> ---
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

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



Re: fop not handling svn rotated text on linux

2011-06-30 Thread Andreas L. Delmelle
On 01 Jul 2011, at 00:12, Andreas L. Delmelle wrote:

> 
> Did you also configure FOP to locate the "FreeSans.ttf" file? 
> See: http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics, and beyond

Just noticed that it is not explicitly mentioned, but if you have a large 
number of fonts installed with the OS, you will probably want to avoid using 
auto-detection, as that can get quite costly. For a quick test, it may suffice 
to check whether the issue would be resolved, though...


Regards

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



Re: fop not handling svn rotated text on linux

2011-06-30 Thread Andreas L. Delmelle
On 30 Jun 2011, at 23:47, Rob Sargent wrote:

> The news about the mac is reassuring, thanks.
> 
> So far I've swapped out the alias for Numbus Sans L for FreeSans in
> /etc/fonts/conf.avail/30-metric-aliases.conf: fonts-config; fc-cache;
> placed the following in my fop config xml
>
> weight="normal"/>
>

Wait a second... 
Did you also configure FOP to locate the "FreeSans.ttf" file? 
See: http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics, and beyond

If FOP is not specifically told to look elsewhere, and it would not find that 
TTF in the working directory, then as a result, it would still fall back to the 
default sans-serif and use the inappropriate metrics.


Regards,

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



Re: fop not handling svn rotated text on linux

2011-06-30 Thread Rob Sargent
The news about the mac is reassuring, thanks.

So far I've swapped out the alias for Numbus Sans L for FreeSans in
/etc/fonts/conf.avail/30-metric-aliases.conf: fonts-config; fc-cache;
placed the following in my fop config xml







but this has been a dead end.

I think I've mentioned that  replacing

with

gets me good output so I'll go with that even though it generates a huge
stacktrace with each call to print.


Thanks to all,

rjs



On 06/30/2011 03:09 PM, Andreas L. Delmelle wrote:
> On 30 Jun 2011, at 22:56, Rob Sargent wrote:
>
>>> Did you follow the link Vincent posted in Bugzilla? IIC, that explains 
>>> exactly what the core issue is, and shows what needs to be done to work 
>>> around it. Obviously, that would mean your FOP config is not portable 
>>> across all platforms, but that seems justifiable.
>>>
>> 
>> However, I don't follow your last point on a justifiable non-portable
>> config.  
> I meant that a config file will, almost by definition, be tied to the local 
> system/platform that FOP runs on. In a way, it is precisely meant to make 
> sure that environment-specific stuff can be 'configured' with relative ease.
>
>> Luckily there is only one Linux box that I need to do this
>> correctly so I'm willing to tweak that config file by hand if it comes
>> to that.  That machine is responsible for the final pdf for the
>> publishers. I'm not sure what the mac users are seeing, but the Windows
>> users are doing fine with the call for "Helvetica".
> Just so you know: the minimized sample Mehdi attached to the bug report 
> renders fine on OS X without custom config.
>
>
> Regards
>
> Andreas
> ---
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

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



Re: fop not handling svn rotated text on linux

2011-06-30 Thread Andreas L. Delmelle
On 30 Jun 2011, at 22:56, Rob Sargent wrote:

>> Did you follow the link Vincent posted in Bugzilla? IIC, that explains 
>> exactly what the core issue is, and shows what needs to be done to work 
>> around it. Obviously, that would mean your FOP config is not portable across 
>> all platforms, but that seems justifiable.
>> 
> 
> However, I don't follow your last point on a justifiable non-portable
> config.  

I meant that a config file will, almost by definition, be tied to the local 
system/platform that FOP runs on. In a way, it is precisely meant to make sure 
that environment-specific stuff can be 'configured' with relative ease.

> Luckily there is only one Linux box that I need to do this
> correctly so I'm willing to tweak that config file by hand if it comes
> to that.  That machine is responsible for the final pdf for the
> publishers. I'm not sure what the mac users are seeing, but the Windows
> users are doing fine with the call for "Helvetica".

Just so you know: the minimized sample Mehdi attached to the bug report renders 
fine on OS X without custom config.


Regards

Andreas
---

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



Re: fop not handling svn rotated text on linux

2011-06-30 Thread Rob Sargent


> Did you follow the link Vincent posted in Bugzilla? IIC, that explains 
> exactly what the core issue is, and shows what needs to be done to work 
> around it. Obviously, that would mean your FOP config is not portable across 
> all platforms, but that seems justifiable.
>
In the middle of a release here, so I confess I just now got through
Vincent's pointers. 

And as expected (by some at least), no Helvetica from
java.awt.GraphicsEnvironment.getAvailableFontFamilyNames so it's
impossible to name correctly :)


However, I don't follow your last point on a justifiable non-portable
config.  Luckily there is only one Linux box that I need to do this
correctly so I'm willing to tweak that config file by hand if it comes
to that.  That machine is responsible for the final pdf for the
publishers. I'm not sure what the mac users are seeing, but the Windows
users are doing fine with the call for "Helvetica". 

Trying the alias trick .
>> I'm on OpenSuSE-11.4. 
>>
>> I have 240 /usr/share/fonts/100dpi/helv*.pcf.gz. Are these unavailable
>> for SVG/PDF generation?
> Perhaps. PCF is a format used by Xserve, which is the reason why you have 
> them installed. This does not necessarily mean that the Java AWT 
> implementation has built-in support for PCF fonts, though...
>
>
> HTH!
>
> Andreas
> ---
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

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



Re: Problems with FOP and image

2011-06-30 Thread Rob Sargent
Great news!


On 06/30/2011 02:27 PM, Oscar.Flores wrote:
> Jejeje guest what it works now i update my JVM to 6.26 and my JDK to 6.26,
> NetBeans 7.0 and put the build.xml and now really add all the libraries that
> needs my program to work in the console yeeah!!! after weeks jejeje
> thanks so much Rob you have been so much helpfull!!thanks man!!  
>
> Rob Sargent-4 wrote:


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



Re: Problems with FOP and image

2011-06-30 Thread Oscar.Flores

Jejeje guest what it works now i update my JVM to 6.26 and my JDK to 6.26,
NetBeans 7.0 and put the build.xml and now really add all the libraries that
needs my program to work in the console yeeah!!! after weeks jejeje
thanks so much Rob you have been so much helpfull!!thanks man!!  

Rob Sargent-4 wrote:
> 
> Are netbeans and your command-line using the same installation of java?
> 
> Can you isolate you image handling code for us?
> 
> 
> 
> On 06/27/2011 03:28 PM, Oscar.Flores wrote:
>> yeah i add the imageio.jar and the clibwrap.jar that comes in the bundle
>> to
>> the classpath and put them in the jdk/jre bin and lib  like in the
>> instruction says 
>> Windows
>> The jar file must be placed in jre\lib\ext and the native library in
>> jre\bin. 
>> but still got the same issues 
>>
>>
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problems-with-FOP-and-image-tp31766430p31967729.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: fop not handling svn rotated text on linux

2011-06-30 Thread Andreas L. Delmelle
Hi Rob,

> On 06/29/2011 10:44 AM, Rob Sargent wrote:
>> Well, that explains why the bold text of my sidebar looks fine!
>> 
>> Give that this SVG we're talking about I have to get _some_ font into
>> the OS's fonts setup.  Also give that the stylesheet has to work on
>> Windows, Mac and Linux, what are the chances of um, er aliasing FreeSans
>> as Helvetica? Looks like I could do that in /etc/fonts/fonts.config? 
>> Any hope there?

Did you follow the link Vincent posted in Bugzilla? IIC, that explains exactly 
what the core issue is, and shows what needs to be done to work around it. 
Obviously, that would mean your FOP config is not portable across all 
platforms, but that seems justifiable.

> I'm on OpenSuSE-11.4. 
> 
> I have 240 /usr/share/fonts/100dpi/helv*.pcf.gz. Are these unavailable
> for SVG/PDF generation?

Perhaps. PCF is a format used by Xserve, which is the reason why you have them 
installed. This does not necessarily mean that the Java AWT implementation has 
built-in support for PCF fonts, though...


HTH!

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