Resize the text without scale text block

Hi people,

Is it possible to resize a text frame without scaling the text in the 2014 AI CC SDK?

I'm working on an AI CC 2014 plug-in and need to resize a text frame without scaling of the text. However, I'm not having a bit of luck to find how to do this. Is what I want to resize the text block in the Type area Options Panel makes, but I'm not able to understand how what classes/methods it uses, or whether they are still exposed in the SDK of.

I tried to use sAITransformArt->TransformArt(), but I can't find a way to stop the text to scale with the text block. I considered, after processing, reformat the text which has been nationally, but that doesn't seem right.

My current thinking is to move the text of the framework which should be scaling in a new block of text size correctly, and then delete the existing framework, but before that, I thought I would ask here see if do I it's harder it must be because I'm missing something.

Thanks in advance for any help!

See you soon!

-Jim Birkenseer

You must use sAITransform-> (TransformArt) on the subject of track of the image of the text, not the entire text block.

For example:

AITextFrameType textFrameType;
sAITextFrame->GetType( art, &textFrameType );
if ( ( textFrameType == kInPathTextType ) || ( textFrameType == kOnPathTextType ) ) {
    sAITextFrame->GetPathObject( art, &art );
    AIRealMatrix sMatrix;
     // Set your matrix as needed here...
    sAITransformArt->TransformArt( art, &sMatrix, 1.0f, kTransformObjects );
}

Tags: Illustrator

Similar Questions

  • Table header row gets cut off from view when the text block is resized

    I'm designing a table that has a header row, 6 body rows and 5 columns. I want the header skewed to 20º and rotation type of needles from the same angle. Knows someone who worked with tables, it is not possible to rotate the text to this value via the parameters of the cell, but the job is to split the table into two blocks of text. The lower sash will be the body lines, but the Executive must have the header where it gets skewed to the specified angle. The text must be created in separate and then cut and paste frames in each column header and then it can be rotated.

    The problem I have is when I try to drag the bottom of the text block to the top while the header remains visible, the header gets cropped view. The only way to prevent it from is Cup is I leave the first line in the frame, but then it gets skewed is not what I want. It seems that the block of text ignores the header still exists. The screenshot below has two tables. The top version is the one that I want to apply the effect to. The bottom has the effect, but his top line is a line of body (not a header).

    Table_2.jpg

    I don't think that it is possible to have a heading row without at least a body line in the framework...

  • Dialog box options Type does not allow me to resize the text box, please help!

    Hello - I use the latest version of Adobe Illustrator CC on Windows 7. I need to make a text box with columns to 32.875 w x 20 h. I use the text tool, draw the box at that size and then open the "type area options" dialog box to specify the column number, gutter width etc. and it automatically resizes the text to 13.888 box w x 13,889 h without fault. I try to type the right width and height in the appropriate space and I hear the windows "error". When I click on 'Preview' show me the box of text resized to 13.888x13.999 so I don't see what I'm doing. It's infuriating, please, someone else had this problem?

    I checked the window of 'transformation' - and the 'blocking' to constrain the proportion of width and height is "unlocked."

    I has a limit to the width of the columns that you have found. For the size that you want, you will need to do it manually.

  • Text on the stroke to the text block

    I was wondering if there is no way to force the text in a text block to be at the top of the race that I added to the text box. The descenders are cut and I have messed around with various options of baseline for the text block, but can't seem to find a way to make it work without making the largest text block which I prefer not to do.

    I saw a few solutions, but they all seem to be for earlier versions by using the settings that I can't find in the CC options.

    Any help would be appreciated! Thank you

    --

    Kristin

    Use a text image inset.

  • Slow down gradually by typing in the text block

    I read all the other threads regarding typing slow in InDesign, but I had not anything the problem that I am facing. My problem is that typing becomes gradually slow when you type in certain blocks of text, that is, it is fast when I start typing in the empty block, but as the text block is filled with the text, it becomes slow.

    I use two types of blocks of text on each page of my document: one with no style whatsoever and the other with a style of object including a border, two rounded corners and margins. This gradually typing slow occurs only in the second type of text block.

    I hit a relatively small (7 MB, less than 300 pages), file text without columns, cross-references, paste them from other applications, connecting blocks of text, or any of the other usual culprits for slow typing I've read about. Nothing else in InDesign is slow, including typing in the other type of text block (without borders, etc.).

    Any ideas?

    Its most likely the rounded corners that is causing the slow down.  Not sure how RADIUS helps you, but having to calculate how to keep the text with rounded corners is much more expensive than when the text block is a simple box.  A suggestion to help alleviate the problem is to break the document by chapter upward, so that you do not have the end of a chapter that connects the beginning of the next.  When you have a large number of pages of text all flow from one page to another, editing text in a page means that all of the following must be recalculated.  Break this cascade of changes from one page to the other will help with performance.  A disadvantage is that you need to be careful and watch the overset text or blank pages that passes at the end of each chapter.

    Mark VerMurlen

    InDesign engineering

  • Type of entry in the text block

    Hello

    Is it possible to define a text frame on a master page and be able to enter text in the image in the document itself, without separate the text block and his master?

    This is for CS4.

    Thank you.

    It depends on the nature of your question. You must override the image on the document page (Shift click command) to add content, but anything that does not change on the page of the document is still linked to the main frame (such as size, position, fill, stroke, etc.). Is that what you mean?

  • Rotate the text with the character within the text block style

    I would like to apply a paragraph or character style to a certain character in a text frame. I would need to rotate 90 degrees in the framework, separate from the other text. Is this possible?

    Insert the text block in the block of text as an anchor and rotation you need.

  • How to put a new line in the text block using jsx?

    Hello guys,.

    I am concatenating the content of the text block using two JSX, but I want separator as a new line. I have tried \n but does not work please help how to do that.

    var  seperator = "\n" 
    frame1.textItem.contents + seperator + text;
    

    Hi UpendraSengarr,

    Try this:

    var frame1 = app.activeDocument.activeLayer;
    var  seperator = "\r";
    frame1.textItem.contents = frame1.textItem.contents + seperator + "text";
    

    Have fun

  • Problem with the text block, put in place when it is used on the page number marker

    Hello!

    I would use the text block on the marker page number on the master page in Indesign. The text block should change width when increases the page number. It does not work. What happens is that when the number of page moves a two-digit figure, the numbers tightened itself (compressed on top of each other) and the block of text changes size unless I drag on it (which means I have to manually unlock the master page first).

    I'm doing something wrong, or is this a bug?

    Thank you!

    Altogether! So, you can use a rule of Pará to simply do it!

  • How to get the text block, given anchor (~ a)

    I need to dynamically position anchored with anchor text blocks (but the relative position will be different for each anchor). If I grep ~ i can get the anchor marker - how to get the text block once I got this marker?

    Thank you

    The marker "anchor" is a character of "simple".

    So you can do the following if you have identified the character (and in this example selected it):

    //Start with an "Anchor Marker" selected:
    var myCharacter = app.selection[0];
    
    if (myCharacter.texts[0].textFrames.length == 1){
    
    var myAnchoredTextFrame = myCharacter.texts[0].textFrames[0];
        //do something with the anchored text frame:
        myAnchoredTextFrame.fillColor = "Yellow";
    
        };
    

    You can set the myCharacter variable differently, if you know the index of the character according to his history of parent.

    Or if you have found the character as part of a search GREP or TEXT by ExtendScript (JavaScript).

    Uwe

  • When you use the "Fill & sign PDF" feature, is there a way to stretch to resize the text box, to an area of the page... rather than through a long straight line...?

    When you use the "Fill & sign PDF" feature, is there a way to stretch to resize the text box on a specific area of the page... instead of the text box is in a long straight line...? I do not see there is an option or the ability to do so, just want to confirm.

    Improving the management of multiple line text fields is in our plans, but for now, you need to add manual carriage return (Enter).

    Thank you

    Josh

  • Text wrapping moves the text block

    Hello world. I have a block of text on my page and a picture frame sitting in the upper left corner of the text block. I want my text to wrap around the picture frame, so I have the text wraps not lit. However, skin moves the entire text block to the right instead of just the text inside the frame. Is it possible to avoid this? InDesign CS for Windows 6. Thank you very much.

    -Rick

    Nevermind, I figured it. The text block was at anchor, and that's why the frame is moved to the right. I'm sorry for the noise of the useless list.

    Rick

  • position of the image/text in the text block

    Hello

    I use textframe to place images and text.

    WHN I put the text / images, by default, the images are aligned at the top of the text block, I need to put it at the bottom of the textframe.

    is there a possible adjustment of the document actuive / app so that by default the content should be aligned to the bottom

    Thank you.

    Search in the object that defines the vertical positioning: textFramePreferencesand you will see there at the time of the Document and the Application as possible parents.

    app.activeDocument.textFramePreferences.verticalJustification = VerticalJustification.BOTTOM_ALIGN;
    

    define the default for new text frames downwards. You can also use

    app.textFramePreferences.verticalJustification = VerticalJustification.BOTTOM_ALIGN;
    

    to set it as a global preference for all your new documents, but anyway this sounds like a bad idea.

  • Apply effects to the text block and not the text

    I am trying to apply a shadow to a text block, but he keeps applied the effect of text rather than the text block.  I click on the text block, and then effects and shadow and object is selected in the 'Settings For' drop-down box.  However, he maintained the application of the shadow to the text, rather than to the text block.   I am doing this wrong, or is there something else I need to do?

    I use CS4 on Windows Vista.

    Thank you!

    Change your fill of paper or whatever is the shading color.

  • Text wrapping will not be in the text block

    I am changing the content on a block of text in Illustrator using a JavaScript file.

    My method is as follows:

    changeLayer = doc.layers.getByName(textKeys[t]);

    changeLayer.textFrames.getByName(textKeys[t]).wrapInside = true;

    changeLayer.textFrames.getByName(textKeys[t]).contents = textArray [textKeys [t]];

    Basically, I set wrapInside to true and then I replace the content of the block of text with a string.

    However, rather than the text as you wish, Illustrator print everything on one line expands the size of the text block (and sleep) to adapt the text on a single line. Even when I put explicitly the width and height of the image in the script, it shrinks the text to fit on a single line in the rather enveloping framework. If I explicitly set the size of the police he then extends the framework once again, but only on a single line. Any ideas? Thanks in advance.

    Good evening

    Don't forget that you have different types of linked text frames. In vba, you can find the property THAT allow you to show that read only 3 types of text frames aiAtraText, aiPathText and aiPointText

    Patrice

Maybe you are looking for