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]

Reply via email to