Rotate Point Text?

Hello,
Can someone please point me in the right direction on how to set the rotation value for point text?
I would greatly appreciate any tips.
Thanks,
-jeshua

//To work with a point text object.
//Position of the point text object.
//For instance the text point will be at 400, 300.
AIRealPoint TextPosition;
TextPosition.h=400;
TextPosition.v=300;
//Choose the rotation angle for the point text object.
//For instance 45°.
AIReal RotationAngle;
RotationAngle=kAIRealPi4;
//Creation of the text object with the AITextFrameSuite.
//For instance, the point text object will be created above all at textPosition.
AIArtHandle Texte;
error = sAITextFrame->NewPointText(kPlaceAboveAll, nil, kHorizontalTextOrientation, TextPosition, &Texte);
//The matrix for the position and rotation of the point text object.
//The AIRealMathSuite and the AITransformArtSuite are used.
AIRealMatrix matrix;
//Set the rotation matrix.
sMath->AIRealMatrixSetRotate( &matrix, RotationAngle);
//Then concat a translation to the matrix.
sMath->AIRealMatrixConcatTranslate( &matrix, TextPosition.h, TextPosition.v);
//Apply the matrix to the point text object.
error = sAITransformArt->TransformArt(Texte, &matrix, 0, kTransformObjects);
//The point text object is in the good position but, it is a empty text.
TextRangeRef textRange;
AIColor TextColor;
ATE::ApplicationPaintRef ATECouleurRef;
ATE::IParaFeatures justif;
ATE::ICharFeatures features;
FontRef fontRef;
AIFontKey fontKey;
error = sAITextFrame->GetATETextRange(Texte, &textRange );
ATE::ITextRange iTextRange( textRange );
iTextRange.Remove();
justif.SetLeadingType(ATE::kRomanLeadingType);
justif.SetStartIndent(kAIRealZero);
justif.SetFirstLineIndent(kAIRealZero);
justif.SetJustification(ATE::kCenterJustify);
features.SetTracking(kAIRealZero);
//The font size. For instance 14 points.
features.SetFontSize(14);
//The font.
//For instance, 10 is a number of the font in the font list.
error=sAIFont->IndexFontList(10, &fontKey );
error = sAIFont->FontFromFontKey ( fontKey, &fontRef );
ATE::IFont iFont( fontRef );
features.SetFont( iFont );
//For a red text.
TextColor.kind=kThreeColor;
TextColor.c.rgb.red=255;
TextColor.c.rgb.green=0;
TextColor.c.rgb.blue=0;
error = sATEPaint->CreateATEApplicationPaint(&CouleurTexte, &ATECouleurRef);
features.SetFillColor(ATE::IApplicationPaint(ATECouleurRef));
//The text itself. For instance JLG.DIMENSION CS3.
iTextRange.InsertAfter("JLG.DIMENSION CS3");
//Apply the text characteristics.
iTextRange.SetLocalCharFeatures(features);
iTextRange.SetLocalParaFeatures(justif);
//I use this method in my own plugins like JLG.Dimension. http://perso.orange.fr/jlg.outils.
//Try it and adapt it.
JLG.

Similar Messages

  • How to rotate a text in the adobe reader for mobile ios ?

    how to rotate a text in the adobe reader for mobile ios ?

    There's no rotate command to rotate the document. Instead, rotate the iPad. If it doesn't rotate, turn off the Rotation Lock switch on the side of your iPad.

  • How do I make mail readable, text barely readable on screen when set to 12 point text.

    Is there a way to increase the size of the displayed mail, as you are creating it?
    I have mine set to 12 point text, but it is still difficult to read. The e-mail when received is fine, it's the creating that's "tiny"
    Thanks
    Mike

    I use "screen zoom" (control + scroll up/down) often when creating these responses.  Or for anything else where I do not want to change the number of open winodws.
    You can also write the message in 16 pt font and "select all" to make it 12-point before sending.

  • Flash 8 registration and rotation point ?

    Is it a bug or some changes in my settings ?
    I don't know why on my Flash 8 when I put the registration
    point of a
    MovieClip on the upper left corner, the rotation point stays
    in the
    middle, but.... (and that's the strange ennoying part)
    When I try to put the Clip on the scene at a position f.i:
    100,100 it is
    the *center point* and not the upper left registration point
    that takes
    the position.
    Is there a way to correct this and to return to my previous
    settings,
    where the registration point was The REference.
    Tks
    Henri Schongut

    Never mind. I think I figured it out; create the object on the stage, edit the registration and pivot points in the symbol in the library, return to stage, right click symbol and 'set transformation point.' I might be able to set that last action as a hot key.
    Thanks for all your help. You should write the manuals.

  • Why is the rotate point moving when using Transform Again on a triangle?

    I am trying to create a pattern that I have created in previous itterations of Illustrator. In CC when I create a triangle (either via Star, Poly, or Pen tool) and then try to rotate it via Transform Each > Transform again, the rotation point moves according to what the bounding box would be if I reset it, rather than staying in one (original) spot relative to the actual bounding box and triangle. I cannot find any settings that would be affecting the rotate point in this way. I am pretty confident that I am using the same procedure now that I did in older versions of Illustrator. Perhaps I am using the wrong procedure.
    Naturally, if you are rotating something around its center you should expect that it would end up create a circular pattern. It is more of a square with concave sides. The red is a perfect circle that I grouped to the triangle to demonstrate the rotate points movement. It is located in the exact center according to the align tools.

    With the rotate tool, option click to set you point of rotation.
    You also may want to look into the transform effect, theres is a box with 9 points for your anchor points you can try. You can also add an object filled with none, group this with your object, and transform the group, to get offset results with the transform effect.

  • How do I rotate a text box?

    How do I rotate a text box?

    You mean, permanently? No way with the free Reader. And changes of this sort are usually done best in the original program (the one used to produce the PDF file). PDF files have never been meant for extensive editing.

  • Noob question - how to align 2 objects to their rotational points?

    for example the rotational points of clock arms that are not in the center or edge of the arms to get aligned to the center of the clock face?

    I want the rotational point of the clock hand to align or snap in the middle of the circle.

  • How do you rotate the text inside a wedge on a Keynote or Numbers chart?

    I'm trying to create a pie chart and would like to rotate the text in some of the wedges on the chart. If I open a new text box, it will allow me to rotate the box. For labels generated by the spreadsheet data, I cannot figure out how to do the same thing. Any ideas are greatly appreciated.

    You would need to add a custom text box and rotate that as the rotate tool is not assigned to wedge labels

  • Rotate Dynamic text and make dynamic text go vertical

    Hello
    I am working on a visual customizer flash app in actionscript 2.0. Looking for good tutorials or examples of how to rotate dynamic text as well as how to make it vertical. Currently all the dynamic embedded text changes colors and size.
    Any help would be greatly appreciated. Thank you.

    distribute each character to a textfield and arrange the textfields to suit your needs.

  • Generating rotated boilerplate text in PDF, HTML format

    Hi,
    I am trying to create rotated boilerplate text in Report 6i to PDF, HTML formats.
    Rotated text generates fine using Report 6i's own report generation (Previewer) but when it's generated to PDF or HTML format output the rotated text are mirrored (in PDF) or simply does not display (in HTML).
    thank you,
    Allan

    I tried to rotate boilerplate texts (45 degree clock wise and anti-clock wise), all works fine in PDF. HTML doesn't support rotated text natually, you can workaround this by create an image for the rotated text.

  • Text and Fonts: rotate a text with characters like áéíúó

    I´m spanish and i need to rotate a text wich contains characters like áéíúó.
    Any ideas on how could it be done?
    thanks,

    You can use [localization |http://jfx.wikia.com/wiki/Proposal_for_the_string_literal_translation] and animation.
    Main_sp.fxproperties
    "Text"="áéíúó"
    Main.fx
    import javafx.animation.*;
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.text.*;
    import javafx.scene.transform.*;
    import java.util.Locale;
    Locale.setDefault(new Locale("sp"));
    var angle = 0.0;
    Timeline {
        repeatCount: Timeline.INDEFINITE
        keyFrames: at(3s) { angle => 360 tween Interpolator.LINEAR
    }.play();
    Stage {
        title: "Rotated text"
        width: 200
        height: 200
        scene: Scene {
            content: Text {
                transforms: [
                    Translate{ x: 50 y: 50},
                    Rotate { pivotX: 30 pivotY: 3 angle: bind angle }
                font: Font { size: 24 }
                content: ##"Text"
    }

  • Having trouble rotating my text box.

    I'm creating a writeable PDF and want to add some text boxes. I'm having trouble rotating my text boxes to align with my design and the rotating icon isn't popping up. Is it even possible to do this?

    In form fields you can only rotate the text orientation, and only in 90
    degree intervals.
    On Wed, Aug 13, 2014 at 6:02 PM, Test Screen Name <[email protected]>

  • I need to rotate my text in pages - in a template - not just a text box

    I am trying to make labels in Pages using a template I downloaded from the place I bought the labels.  Problem is I cannot rotate the text! And I cannot select the text box - it is not working.  WHY PAGES WHY???? Does anyone know how to deal with this? 

    If you already designed a label art and need to rotate it to fit the label itself you can select all the elements from the design and select "group" then on the  "format" tab of the Inspector you can rotate it. If you wish to print more than one label just copy, paste and move them to the label area. Hope this helps.
    Can you also post a print screen so we can better understand what you are trying to achieve.
    Alex

  • Rotate the text vertical in designer ES4

    Hi,
    I am using designer ES4, where I have to rotate the text field - content(XML binded value) vertical, which I cant able to achieve it in designer.
    For a Text field we have a default anchor option (90, 180 and 270 degree). when I am using this property, only object is getting rotated not the content inside it. Please help me on this.
    Thanks in advance.
    For eg:
    I need the text top to bottom, like mentioned below
    A
    B
    C
    D
    1
    2

    If vertical alignment is not possible, then use an edit box without borders, having the default height, and place it inside a static control having
    SS_WHITERECT style. (In MFC Dialog Editor, set the Type and Colour properties). Both of controls will be children of dialog. Use a proper tab order. Check if the style
    WS_CLIPSIBLINGS is needed too.

  • Vertical text to be displayed in the label/form by rotating the text

    Hi all,
    I am working on a smartform wherein i need to print a text vertically by rotating the text 90 degree (which means the letters will also be tilted in 90 degree angle).Is there any specific printer command or setting that needs to be done to achieve this?Please help!!!

    hi,
    refer to this threads.
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/how-write-vertical-text-in-smartforms-954247
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/vertical-text-in-smartform-1076101
    Re: Vertical printing the Text in Smartforms
    regards,
    sreelakshmi

Maybe you are looking for