How to put text on an image?

View: New views
3 Messages — Rating Filter:   Alert me  

How to put text on an image?

by koenIT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to place an image, and afterwards put some text on this image?
Somebody done this before?

thanks in advanced

Re: How to put text on an image?

by Jeremias Maerki-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


There are various ways to do that:
- Set a background image on a block-container and use normal fo:blocks
inside the block-container.
- You can also experiment with negative space-before lengths to achieve
overlaying effects.
- For more fancy text, use SVG to paint the image and the text on it.

On 28.04.2008 21:55:25 koenIT wrote:

>
> I want to place an image, and afterwards put some text on this image?
> Somebody done this before?
>
> thanks in advanced
> --
> View this message in context: http://www.nabble.com/How-to-put-text-on-an-image--tp16945875p16945875.html
> Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
>
>


HTH,
Jeremias Märki
_________________________________________________________
Jeremias Märki, Software-Development and Consulting
Contact Information: http://www.jeremias-maerki.ch/contact.html
Blog: http://www.jeremias-maerki.ch/blog/



Re: How to put text on an image?

by Tony Graham-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Tue, Apr 29 2008 07:25:16 +0100, dev@... wrote:
> There are various ways to do that:
> - Set a background image on a block-container and use normal fo:blocks
> inside the block-container.

Or use absolutely-positioned fo:block-container within the
fo:block-container, since the containing fo:block-container would be the
reference area.

> - You can also experiment with negative space-before lengths to achieve
> overlaying effects.
> - For more fancy text, use SVG to paint the image and the text on it.

Which is probably the best idea.

Or use multiple absolutely-positioned fo:block-container with different
z-index values.

Or as a last resort, use multiple absolutely-positioned
fo:block-container without using z-index and see if your XSL formatter
will overlay them in any useful manner.

> On 28.04.2008 21:55:25 koenIT wrote:
>>
>> I want to place an image, and afterwards put some text on this image?
>> Somebody done this before?

Regards,


Tony Graham                         Tony.Graham@...
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2