Hi Christoffer Thanks for taking the time to look into this. Don’t think it is related to units, but I did notice that whenever I use a fop font (e.g. by making sure the font resolution fails and a default is used) as opposed to a macos one, it does seem to work.
So, seems font file/processing related Peter > On 19 Apr 2015, at 13:25, Christoffer Bruun <[email protected]> wrote: > > Forgot to cc you directly > > > -------- Videresendt meddelelse -------- > Subject: Re: Rendering svg instream foreign object to pdf gives wrong > result when svg contains dy on text > Date: Sun, 19 Apr 2015 13:19:35 +0200 > From: Christoffer Bruun <[email protected]> <mailto:[email protected]> > To: [email protected] > <mailto:[email protected]> > > Hi Peter, > > Could it be some sort of unit confusion? > > You are using unit-less x and y attributes, but dy is given in px > > /Christoffer > > > > Den 15-04-2015 kl. 22:14 skrev Peter Coppens: >> Hello >> >> I have a svg that has a text element positioned with a dy attribute. When >> the svg is displayed in the browser or rendered to a png using batik, the dy >> is taken into account, but when using fop to render to pdf it is not. >> >> Attached the fo file, the resulting pdf and the png as rendered by batik. >> >> Is there something wrong with the fo input or is the pdf transcoder not >> support the dy attribute? >> >> All tips welcomed! >> >> Tx >> >> Peter >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> <mailto:[email protected]> >> For additional commands, e-mail: [email protected] >> <mailto:[email protected]> > >
