Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Rendering Server > Generic Support
  New Posts New Posts RSS Feed: Rotate text
  FAQ FAQ  Forum Search   Register Register  Login Login

Rotate text

 Post Reply Post Reply
Author
Message / View First Unread Post
charrington View Drop Down
Newbie
Newbie
Avatar

Joined: 31 Jan 2012
Location: USA
Posts: 3
Post Options Post Options   Quote charrington Quote  Post ReplyReply Direct Link To This Post Topic: Rotate text
    Posted: 31 Jan 2012 at 1:58pm
Is this possible? I want to rotate text.
Back to Top
radup View Drop Down
Admin Group
Admin Group
Avatar
Adminstrator

Joined: 19 May 2008
Posts: 90
Post Options Post Options   Quote radup Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 2012 at 4:40am
Hi,

There are two options:

1. You can use a block container, but you can rotate the text only in increments of 90 degrees:
<fo:block-container reference-orientation="90">
    <fo:block>
        TEST
    </fo:block>
</fo:block-container>

or

<fo:block-container reference-orientation="180">
    <fo:block>
        TEST
    </fo:block>
</fo:block-container>

2. If you want to rotate the text by 45 degrees then you can use an svg to rotate the text:

<fo:block>
 <fo:instream-foreign-object>
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25pt" height="25pt">
    <text x="5px" y="5px" transform="rotate(45)" style="stroke:none; fill:#000000;">Text</text>
</svg>  
</fo:instream-foreign-object>
</fo:block>


Edited by radup - 01 Feb 2012 at 4:41am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.062 seconds.