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?
Thanks much, rjs On 06/29/2011 05:19 AM, Vincent Hennebert wrote: > Hi, > > I added some comments to the Bugzilla report. More details regarding > this specific issue: > > Linux systems don’t have the Helvetica font, they use the Nimbus Sans L > clone. So you would have to specify ‘Nimbus Sans L’ as the font family. > The problem is, a condensed variant of this font exists, and is wrongly > selected by Java (on my system at least, Ubuntu 10.10 with a Sun 1.6 > JVM) for the bold weight. Which means that if you need bold fonts you > may not be able to use Nimbus Sans L. You can choose any other font > instead, for example FreeSans which is a TrueType version of Helvetica > with more glyphs. > > HTH, > Vincent > > > On 28/06/11 18:25, Rob Sargent wrote: >> Roger. Will give it a shot. >> >> rjs >> >> On 06/28/2011 10:03 AM, mehdi houshmand wrote: >>> No problem. >>> >>> If you want any advice this is what I'd do: >>> First double check it's not a kerning issue in the system font. I >>> think this is unlikely, but we need to double check that. I'd do that >>> by copying the font, and embedding the font in the PDF with the >>> #PCDATA as "Jo" (to do this you'll have to put it in the fop.xconf and >>> use a non-Base14 name). If the #PCDATA text shows the same issues, the >>> problem is a font one, and we can be fairly confident it's not a FOP >>> issue. >>> >>> If however this isn't repeatable with #PCDATA then we've got an issue. >>> You'll already have the font in a local directory, so check it's type, >>> check do some debugging in PDFPainter.drawText(...) and find out why >>> the kerning is behaving as it is. i think it's a type1 font. >>> >>> I'll try and do the above myself if I get some time to spare. Just >>> make sure you post any findings on the bugzilla entry so we can track >>> it. >>> >>> Thanks >>> >>> Mehdi >>> >>> On 28 June 2011 16:44, Rob Sargent <[email protected]> wrote: >>>> Mehdi, >>>> >>>> Sorry about the size of the pdf: I was hoping that removing the images >>>> would make it simple enough or that the svg would suffice. >>>> >>>> Knowing that you think it's a bug is re-assuring. >>>> >>>> Not sure what "P2 normal" means in terms of time, so with a pointer to >>>> what you think is the problem, I would be happy dive in. I meant to >>>> register this against version 0.95 but I have moved this (portion of >>>> our) product to 1.0. >>>> >>>> Cheers, >>>> >>>> rjs >>>> >>>> >>>> On 06/28/2011 01:43 AM, mehdi houshmand wrote: >>>>> Hi Rob, >>>>> >>>>> I took a quick look at this and just a note for future. If you see >>>>> this kind of problem, could you reduce the FO and PDF produced to >>>>> isolate the problem. There's a lot of visual noise here that makes >>>>> finding the issue more difficult, however, this does look like a FOP >>>>> bug, I've created a bug >>>>> https://issues.apache.org/bugzilla/show_bug.cgi?id=51441. I'll post >>>>> any findings on there. >>>>> >>>>> Mehdi >>>>> >>>>> On 27 June 2011 21:17, Rob Sargent <[email protected]> wrote: >>>>>> "Doth my eye deceive me?" >>>>>> >>>>>> I'm back to thinking this is an FOP bug. >>>>>> Attached please find an example pdf, it fo and the include svg files. >>>>>> >>>>>> I manage to get "good output" by mis-specifying a font!! >>>>>> <svg:text >>>>>> font-family="-monotype-arial-medium-o-normal--0-0-0-0-p-0-microsoft-cp1252"> >>>>>> >>>>>> This generates a glorious stack trace but at least the J and the o of >>>>>> Joint aren't touching each other. >>>>>> >>>>>> >>>>>> >>>>>> On 06/26/2011 03:17 AM, mehdi houshmand wrote: >>>>>>> Hi Rob, >>>>>>> >>>>>>> No I don't it's necessary if you're happy that it's not a FOP issue. >>>>>>> >>>>>>> Mehdi >>>>>>> On 25 June 2011 21:55, Rob Sargent <[email protected]> wrote: >>>>>>>> Medhi, >>>>>>>> >>>>>>>> I've loaded acroread on the shared linux box and the pdf looks fine. >>>>>>>> >>>>>>>> Do you still want the pdf? Or does this become an Evince issue? >>>>>>>> >>>>>>>> >>>>>>>> Cheers, >>>>>>>> rjs >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> mehdi houshmand wrote: >>>>>>>>> Hi Rob, >>>>>>>>> >>>>>>>>> Could you upload the PDF in question (if it's not too big) and it'll >>>>>>>>> give us a better idea of what the issue is. >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> Mehdi >>>>>>>>> >>>>>>>>> On 25 June 2011 04:37, Bernard Giannetti <[email protected]> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Something which happened to me (unrelated to rotating text) but I >>>>>>>>>> noticed >>>>>>>>>> a >>>>>>>>>> difference between the PDF viewing engines of Adobe and Ubuntu's >>>>>>>>>> Document >>>>>>>>>> Viewer. >>>>>>>>>> >>>>>>>>>> There is some bug in the way the underlying library (used by Document >>>>>>>>>> Viewer) does rendering - I cannot remember the specifics but the bug >>>>>>>>>> was >>>>>>>>>> there still a few months ago. >>>>>>>>>> >>>>>>>>>> So perhaps look at your PDF using Adobe PDF viewer on Linux? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> Date: Fri, 24 Jun 2011 17:08:20 -0600 >>>>>>>>>>> From: [email protected] >>>>>>>>>>> To: [email protected] >>>>>>>>>>> Subject: fop not handling svn rotated text on linux >>>>>>>>>>> >>>>>>>>>>> Using fop-0.95 in this case. We generate a small svg file for the >>>>>>>>>>> outside edge of each page and put the section name and page number >>>>>>>>>>> (et >>>>>>>>>>> al). The text is rotated +/-90 degrees for the section name. We're >>>>>>>>>>> using Helvetica. Certain character combinations are just wrongly >>>>>>>>>>> spaced >>>>>>>>>>> but especially "Jo" which actually touch each other in the final >>>>>>>>>>> pdf. >>>>>>>>>>> Worse yet, this only happens on our linux boxes: OpenSuse 11.2 and >>>>>>>>>>> 11.4 >>>>>>>>>>> and Ubuntu. Windows boxes print just fine. How embarrassing is >>>>>>>>>>> that!? >>>>>>>>>>> >>>>>>>>>>> Any pointers appreciated, >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> --------------------------------------------------------------------- >>>>>>>>>>> To unsubscribe, e-mail: [email protected] >>>>>>>>>>> For additional commands, e-mail: >>>>>>>>>>> [email protected] >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>> --------------------------------------------------------------------- >>>>>>>>> To unsubscribe, e-mail: [email protected] >>>>>>>>> For additional commands, e-mail: [email protected] >>>>>>>>> >>>>>>>>> >>>>>>>> --------------------------------------------------------------------- >>>>>>>> To unsubscribe, e-mail: [email protected] >>>>>>>> For additional commands, e-mail: [email protected] >>>>>>>> >>>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> To unsubscribe, e-mail: [email protected] >>>>>>> For additional commands, e-mail: [email protected] >>>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: [email protected] >>>>>> For additional commands, e-mail: [email protected] >>>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: [email protected] >>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
