Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Designer > Generic Support
  New Posts New Posts RSS Feed: Rotating Text
  FAQ FAQ  Forum Search   Register Register  Login Login

Rotating Text

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

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Topic: Rotating Text
    Posted: 04 Nov 2011 at 8:27am
From what I understand the XSL-FO spec only allows reference-orientation in increments of 90 degrees, meaning something like this will not work:


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


Is there any way around that restriction?
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: 04 Nov 2011 at 9:38am
Hi mattucg,
As workaround you can use SVG to rotate the text:
<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>  
Back to Top
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2011 at 12:52pm
That sounds promising, but adding the code you provided does not seem to do anything.
Back to Top
florinv View Drop Down
Admin Group
Admin Group


Joined: 19 May 2008
Posts: 83
Post Options Post Options   Quote florinv Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2011 at 3:26pm
The SVG must be nested within a fo:instream-foreign-object:


<fo:block>
 <fo:instream-foreign-object>
  <!--
   svg goes here
  -->
</fo:instream-foreign-object>
</fo:block>


Edited by florinv - 04 Nov 2011 at 3:26pm
Back to Top
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Posted: 07 Nov 2011 at 9:41am
That did it, thanks :)
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.070 seconds.