thanks, I tried successfully with 0.91b. The last time I failed with 0.20.5 :)

Thang.

-----Original Message-----
From: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 29, 2006 5:26 PM
To: [email protected]
Subject: RE: How to align text and <fo:external-graphic> within <fo:block> by 
bottom

This has been checked successfully on FOP 0.92b:

<fo:block font-size="12pt">
        some text
        <fo:external-graphic
                src="file:///E:/path/to/image.gif"
                content-width="4mm" content-height="4mm" scaling="uniform" 
baseline-shift="-2mm"/>
        <!-- tried successfully with baseline-shift="sub" --> </fo:block>

Baseline-shift numeric value should be depend on line-height/font-size 
inherited value.

Pascal

> -----Original Message-----
> From: Nguyen, Thang [mailto:[EMAIL PROTECTED]
> 
> Could you show me more, I tried belows but all failed.
> 
> + <fo:block>Some text here ..<fo:external-graphic
> baseline-shift="sub" 
> + src="url({IMAGEPATH})"/></fo:block>
> 
> + <fo:block><fo:inline baseline-shift="sub">Some text here 
> + ..</fo:inline><fo:external-graphic
> src="url({IMAGEPATH})"/></fo:block>
> 
> thanks,
> 
> Thang. 
> 
> -----Original Message-----
> From: Pascal Sancho [mailto:[EMAIL PROTECTED]
> 
> > -----Original Message-----
> > From: Nguyen, Thang [mailto:[EMAIL PROTECTED]
> > 
> > I layout a <fo:block> like this:
> > 
> > <fo:block>Some text here ..<fo:external-graphic 
> > src="url({IMAGEPATH})"/>.</fo:block>
> > 
> > The result is: the text & the image are aligned by the top of the 
> > block
> > 
> > My question is how to align the text & the image by the
> bottom of the
> > block.
> 
> Hi Thang,
> 
> Since display-align is not yet implemented for inlines FOs (both in 
> FOP 0.20.5 and 0.92b), as a work around, you can play with 
> baseline-shift property on your fo:external-graphic, using negative 
> values (FOP 0.92bà or 'sub' value (all FOP versions).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This email may contain material that is confidential, privileged and/or 
attorney work product for the sole use of the intended recipient. Any review, 
reliance or distribution by others or forwarding without express permission is 
strictly prohibited. If you are not the intended recipient, please contact the 
sender and delete all copies.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to