Vertically center live text

Since the anchor point of live text is normally at the baseline, vertically centering text using %age of comp doesn't work.
It doesn't seem that dividing the text point size by 2 gives me a correct vertical offset either (which should work if my text size was the caps height, right?). So AE must be using the X-height as the font size?  So I have no idea what the X-height for some fonts are.
Other than visually manually adjusting the anchor point or the baseline offset, is there any better/quicker/automated way of vertically centering text within a comp?

Hey Navarro, I understand your pain
I've used a workaround, not automated but it helped me anyway. You'll have to do this for every font you wanna use.
1) Create a new comp, standard HD for exemple and write a text with your font in size 20.
2) Now use the region of interest to match exactly the size of your text (well the height at least).
3) In the comp menu, use the crop to region of interest button. Co to the comp setting and write down the height.
4) Now redo the 3 first steps with size 60.
5) then all you'll have to do is a little rules of 3 to automagically calculate the actual X-size depending on the size of your font, and write down an expression for this on your anchorPoint.
A bit PITA, but it has worked great for me.
Hope that helps.

Similar Messages

  • How to Vertically center dynamic text?

    I am trying to vertically center and wrap text within a Text div. I have figured out how to center text if it is a single line, but the text that I am using will be diffrent for each user depending on what language they view the page in. How can i make sure that text is always vertically centred and wrapped regardless of how long it is?

    Could you do this with css? There is a css attribute display:table that allows you to set the paragraph attribute to align to themiddle of a region. See: http://css-tricks.com/vertically-center-multi-lined-text/
    Hope that helps.

  • How do I vertically align my text to center within a div?

    any solutions?

    nevermind I found a way to do it. It's probably not the most efficient way but since I only have a single line of text within the div I managed to vertically center the text using line height. I am new to web design and have been studying and watching tutorials for the last month on dreamweaver. I am getting better but I must say dreamweaver is quite glitchy when it come to accurately displaying the actual design of the webpage in split view. Only when I view my work in line view can I actually see what is really going on.

  • IPhone: Vertically centering UILabel text

    The UILabel permits horizontal centering of its text via the textAlignment property, but there seems to be no way to align the text vertically. I have 3 labels, the last holding from one line to several. It if only has a single line, the text is vertically centered giving a big gap from he previous text. That looks uncool. (and in the Mac world, cool is everything). Is there some secret magical way to get UILabel to vertically center is text as well, or do I need to abandon labels and just drop down to drawRect.

    Check out NSString(UIStringDrawing). It has the following method, which you can use to calculate the size of the text as it would be in the label. Then you can set the label height to the minimum necessary for the text, which will solve your vertically centering problem.
    sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode:

  • Vertically Align to center of text box

    I have a project that has 500+ Peices and each one consists of a 1 of three logos and 1 of 500+ lines of text and all the lines of text are different lengths
    I am using data sets and variables.xml to create them all quickly. Now the problem I am having is getting the text to wrap properly this was easilly solved by using a text box. But now I would like to center all text vertically inside the box. Can someone point me in the right direction.

    You are welcome, darkorical.
    Depending on the task/options, it may be worth looking at this thread,
    http://forums.adobe.com/thread/756492?tstart=30
    and at the
    JET_AutoFitVertical.jsx
    JET_SetCapsHeight.jsx
    scripts mad available by James here:
    http://www.illustrationetc.com/AI_Javascripts/TextScripts.htm

  • Vertically center text in a textbox

    Like Indesign, a way to vertically justify or center a text in a textbox.

    I don't know if there is a way to automatically center the text, but you can play with padding, if font size and height are fixed:
    .text-box *.viewport {
        -fx-padding: 15 5 3 5;
    // Tested with:
    TextBox
        text: "Hello World"
        columns: 12
        selectOnFocus: true
        layoutInfo: LayoutInfo { height: 50 }
    }

  • Can I center the text in vertical direction in JTextArea

    for example , if the JTextArea is 50 pixels high, and the text 's height is 20 pixels,
    then how can I center the text in vertical direction in this JTextArea which means
    there is a extra space whose height is 15 pixels over and under the text?

    Exactly what are you trying to do?
    JTextAreas are usually in a scroll pane, you add multiple lines ie height can change
    are you going to make it uneditable etc
    if it is just for a display (uneditable), perhaps a 'tall' JTextField might give you the desired effect

  • How to vertically center text within its container

    Whether in a button, or a text element, I see no way to center the text that you type *vertically* in the container.  I'm not talking about within the box element.  I mean just the text element itself.  If I size out a text area and start typing in it, I should be able to say center it vertically.  That's what I'm looking for anyway.   Help much appreciated.

    Text elements cannot be vertically centered as they are not containers. However, you can fake that somewhat by making the line-height very large. But this means if you have text spanning two lines it would be very far apart though

  • Is there a way to vertically center text / elements?

    Please help on this

    Hi Gupevieira,
    This would depend as what and where you exactly want to align page items. Examples being:
    1) To align the content on the Muse canvas, you may refer to the following link:
    How do you center objects and or a website vertically and horizontally in Muse?
    2) To fix certain content on the browser window, you may center it as in the above scenario, and use the Pin feature to fix it in the browser.
    3) To align some text vertically in a text frame, you may refer to:
    Need Help with Text Alignment
    4) To align with reference to other content, you may you the Align panel (Window->Align)
    Additionally , you can use padding/gutter value for spacing in respect to alignment in spacing panel, similarly Align panel can be used to align objects on page accordingly.
    If this is not the answer you are looking for then please provide more details as what you are trying to achieve , screenshots would help.
    Regards
    Sonam

  • How do I center a text field when input can be single or multi-line?

    I'm creating a form in Adobe Acrobat Pro XI and have almost everything the way I want it.  One of my last problems is trying to get a text in a text field centered.  The input is sometimes a single line and sometimes multi-line.  If I set it up so the multi-line entries are centered, then the single line looks off ... and vice versa.  Is there any way to have the text automatically centered in the text field regardless of whether it's single or multi-line?

    Unfortunately, there's no way to set up a field so that the text is guaranteed to be vertically centered in both cases. If you set it up so that rich text formatting is enabled, it's possible for a user to vertically center, but it's not something you can preconfigure so that it will remain in effect when the field is cleared. For a user to do this, with the focus set to the field they'd have to display the Properties toolbar (Ctrl+E), click the "More..." > Paragraph > Alignment > Text Middle [button]

  • How to vertically center InlineGraphicElements?

    Hi all,
    I'm trying to extend the InlineGraphic TLF example to insert images of varying sizes, but vertically center them in the text Flow.  I'm having trouble figuring out the correct parameters to properly center the element.  I've been playing with alignmentBaseline & dominantBaseline w/ IDEOGRAPHIC_CENTER, but I don't get very promising results.  Here's a screen shot of where I'm at:
    Notice the blue box(added in post), the text MESSUP is being placed on the same line as the Lorem Ipsum text(in the string, it's Donec MESSUP).  Also, the selection box (Ctrl+A) shows breaks in the text layout.  It seems like the boxes should be shifted up.  This may be as designed, if so, how do I compact/shift the boxes up?
    For contrast, this is what it looks like without the centering:
    Source:
    package
        import flash.display.Sprite;
        import flash.text.engine.TextBaseline;
        import flashx.textLayout.container.ContainerController;
        import flashx.textLayout.edit.EditManager;
        import flashx.textLayout.elements.InlineGraphicElement;
        import flashx.textLayout.elements.InlineGraphicElementStatus;
        import flashx.textLayout.elements.ParagraphElement;
        import flashx.textLayout.elements.SpanElement;
        import flashx.textLayout.elements.TextFlow;
        import flashx.textLayout.events.StatusChangeEvent;
        import flashx.undo.UndoManager;
        [SWF(width="760", height="590", backgroundColor="0xCCCCCC", frameRate="30")]
        public class inliner extends Sprite
            protected var textFlow:TextFlow;
            public function inliner():void
                var elements:Array =
                    "Lorem ipsum dolor", null,
                    "sit amet, consectetur", null,
                    "adipiscing elit. Mauris eu odio nibh. Duis", null,
                    "scelerisque mattis risus, vitae viverra", null,
                    "ipsum vehicula non.", null,
                    "Donec MESSUP"];
                textFlow = new TextFlow();
                textFlow.fontSize = 34;
                textFlow.backgroundColor = 0xFFFFFF;
                textFlow.backgroundAlpha = 1;
                var imageSize:uint = 20;
                var paragraphElement:ParagraphElement = new ParagraphElement();
                textFlow.addChild(paragraphElement);
                for(var i:uint = 0; i < elements.length; ++i)
                    var obj:* = elements[i];
                    if(obj is String)
                        var string:String = obj as String;
                        var span:SpanElement = new SpanElement();
                        span.text = string;
                        paragraphElement.addChild(span);
                    else if(obj == null)
                        var inlineGraphic:InlineGraphicElement = new InlineGraphicElement();
                        inlineGraphic.width = imageSize;
                        inlineGraphic.height = imageSize;
                        imageSize += 20;
                        inlineGraphic.source = "http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg";
                        // comment out to change back to good looking text
                        inlineGraphic.alignmentBaseline = TextBaseline.IDEOGRAPHIC_CENTER;
                        inlineGraphic.dominantBaseline = TextBaseline.IDEOGRAPHIC_CENTER;                   
                        paragraphElement.addChild(inlineGraphic);
                // event sent when graphic is done loading
                textFlow.addEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE, graphicStatusChangeEvent);
                const bufferX:Number = 50;
                var sprite:Sprite = new Sprite;
                sprite.x += bufferX;
                addChild(sprite);
                textFlow.flowComposer.addController(new ContainerController(sprite, 760 - bufferX * 2, 590));
                // this call compose but the graphic hasn't been loaded from the source URL yet.
                // The actualWidth and actualHeight are zero. 
                refresh();
                var em:EditManager = new EditManager(new UndoManager);
                textFlow.interactionManager = em;
                textFlow.interactionManager.setFocus();
            protected function graphicStatusChangeEvent(e:StatusChangeEvent):void
                // if the graphic has loaded update the display
                // actualWidth and actualHeight are computed from the graphic's height
                if(e.status == InlineGraphicElementStatus.READY || e.status == InlineGraphicElementStatus.SIZE_PENDING)
                    refresh();
            protected function refresh():void
                textFlow.flowComposer.updateAllControllers();

    Cannot, really.
    Read this -
    http://www.apptools.com/examples/tableheight.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Reese" <[email protected]> wrote in message
    news:eh34gg$rvh$[email protected]..
    > How to vertically center a div? :-S
    >

  • Center the text in the textfield

    Is there a way to center the text in the text field? Specially vertically.

    It seems that when a new text is set, the start position of the text is not recomputed, as the following example demonstrates. Initially all text fields are aligned correctly. But when you then hit the update button, all textfields are updated with a new, longer text which shows the problem. All texts seem to start at the same position which was computed for the previous text and not the recomputed new position for the new text. To temporarily work around this problem, you can reset the alignment of the text fields and then set it back to your desired value. This forces a recomputation of the text start position.
    package textfield.alignment;
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Pos;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TextFieldAlignment extends Application {
         TextField lText;
         TextField cText;
         TextField rText;
         public static void main(String[] args) {
              launch(args);
         @Override
         public void start(Stage stage) {
              lText = new TextField("left");
              lText.setAlignment(Pos.BASELINE_LEFT);
              cText = new TextField("center");
              cText.setAlignment(Pos.BASELINE_CENTER);
              rText = new TextField("right");
              rText.setAlignment(Pos.BASELINE_RIGHT);
              Button btn = new Button("update");
              btn.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent t) {
                        lText.setText("updated left");
                        cText.setText("updated center");
                        rText.setText("updated right");
    //                    applyWorkaround();
              VBox root = new VBox();
              root.getChildren().addAll(lText, cText, rText, btn);
              stage.setScene(new Scene(root, 200, 300));
              stage.show();
         void applyWorkaround() {
              lText.setAlignment(Pos.CENTER);
              lText.setAlignment(Pos.BASELINE_LEFT);
              cText.setAlignment(Pos.CENTER);
              cText.setAlignment(Pos.BASELINE_CENTER);
              rText.setAlignment(Pos.CENTER);
              rText.setAlignment(Pos.BASELINE_RIGHT);          
    }

  • How can I make a title (text) on a postcard vertical not horizontal text?

    How can I make a title (text) on a postcard layout vertical not horizontal text?

    Insert it in a Text Box then rotate this one.
    Yvan KOENIG (VALLAURIS, France) lundi 13 juin 2011 16:20:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to center a text in numbers

    I am having a little bit of a hard time trying to center a text between 3 or more columns.... how can I do that?

    Threre are a few options:
    1) select the three cells and merge them, then enter the text and open the cell formatter and center the text horizonatlly.  NOTE:  merging cells often causes unexpected problems
    2) create a text box and type the text, then format as horizontally centered.  Place the text box over the  cells, set the fill pattern to the same as the cells
    3) create another table to be the header :
    and set the cell width for one cell to be the same as three in the "other" table
    There are porbably more ways than this.  Hopefully one of these will work for you or you will suggest another that works.

  • Live text template render issue when using Media Encoder?

    I'm running into flash frames with Media Encoder exports of Premiere sequences using the live text templates.
    Unfortunately, AME doesn't flag it as an error, so the render completes without any issues in the render log and the only way to find it is to watch the rendered file.
    I have tried different combinations of having After Effects open or closed, with the live text template comp open or closed; I can't consistently reproduce the problem with any certainty and so am having trouble pinpointing the source.
    My only hypotheses so far are that:
    The glitches seem to be happening in the dynamic link between AME and PP, not AE and PP. The live text will pop back to the duplicated comp's text for one frame. Video playing simultaneously doesn't pop.
    In other words, the AE text template said: "name here". In PP it was edited to say "John Doe", then that comp was duplicated and edited to say "Bob Smith". Everything looks fine in PP. There are no keys on the source text in AE (I have noticed that if there are keys on the source text in AE, the text will pop back to the original AE text at that key in PP).
    When rendered out of AME, halfway through Bob Smith's title, it will read "John Doe" for a single frame, then pop back to being Bob.
    I've only had this happen so far with AME renders. The renders out of PP haven't given me any issues so far.
    It might happen more frequently on longer segments? If a title is up for 45 sec instead of 10 sec, it may be more likely to pop.
    The issue seems to occur more often in batch renders out of AME (happened to 3 of 5 files rendered in a batch, AME 2014.1) and/or with unrelated AE comps open (on a single render from AME 2014.2)
    Again, it doesn't happen every time or to the same title, or in the same spot. Files are being rendered to ProRes 422 HQ. Unchecked "Use Previews" in AME.
    Would be nice to get to the bottom of what's happening so I can recommend something to the editors when I hand off these live text templates to them.
    I realize that the live text is a new feature as of 2014.1, but haven't found anyone else talking about this. Would love if this was a very simple fix that I'm missing.
    I was able to reproduce the error on 2 different machines, with similar specs:
    Premiere CC 2014.1 and 2014.2
    Media Encoder CC 2014.1 and 2014.2
    Mac tower 2010
    2x 6-core Intel Xeon
    RAM: 64 GB
    Graphics: ATI Radeon HD 5770 and NVidia Quadro K5000 (or K4000)
    OS: 10.8.5 Mountain Lion

    I'm running into flash frames with Media Encoder exports of Premiere sequences using the live text templates.
    Unfortunately, AME doesn't flag it as an error, so the render completes without any issues in the render log and the only way to find it is to watch the rendered file.
    I have tried different combinations of having After Effects open or closed, with the live text template comp open or closed; I can't consistently reproduce the problem with any certainty and so am having trouble pinpointing the source.
    My only hypotheses so far are that:
    The glitches seem to be happening in the dynamic link between AME and PP, not AE and PP. The live text will pop back to the duplicated comp's text for one frame. Video playing simultaneously doesn't pop.
    In other words, the AE text template said: "name here". In PP it was edited to say "John Doe", then that comp was duplicated and edited to say "Bob Smith". Everything looks fine in PP. There are no keys on the source text in AE (I have noticed that if there are keys on the source text in AE, the text will pop back to the original AE text at that key in PP).
    When rendered out of AME, halfway through Bob Smith's title, it will read "John Doe" for a single frame, then pop back to being Bob.
    I've only had this happen so far with AME renders. The renders out of PP haven't given me any issues so far.
    It might happen more frequently on longer segments? If a title is up for 45 sec instead of 10 sec, it may be more likely to pop.
    The issue seems to occur more often in batch renders out of AME (happened to 3 of 5 files rendered in a batch, AME 2014.1) and/or with unrelated AE comps open (on a single render from AME 2014.2)
    Again, it doesn't happen every time or to the same title, or in the same spot. Files are being rendered to ProRes 422 HQ. Unchecked "Use Previews" in AME.
    Would be nice to get to the bottom of what's happening so I can recommend something to the editors when I hand off these live text templates to them.
    I realize that the live text is a new feature as of 2014.1, but haven't found anyone else talking about this. Would love if this was a very simple fix that I'm missing.
    I was able to reproduce the error on 2 different machines, with similar specs:
    Premiere CC 2014.1 and 2014.2
    Media Encoder CC 2014.1 and 2014.2
    Mac tower 2010
    2x 6-core Intel Xeon
    RAM: 64 GB
    Graphics: ATI Radeon HD 5770 and NVidia Quadro K5000 (or K4000)
    OS: 10.8.5 Mountain Lion

Maybe you are looking for

  • Final Cut Pro versus Adobe Premier Elements9

    I am familiar with Pinnacle Studio 14 as I used it on my PC.  Now I have a MAC OS X and am unsure whether to use Final Cut Pro, Adobe Premier Elements 9 or iMovie 11 ?? Thanks

  • Connection Timeouts ...

    Hello All, I have 2 machines: a MacBook (bought 2 years ago) and a MacBook Pro (bought 8 months ago). Both machines have Leopard. Two days ago I installed a wifi system in my apartment. I found the relevant signal on the MacBook, clicked on it and in

  • Installation menu always results in Abort Installation? ThinkPad 600E

    i am trying to install arch 0.7.1 to my old ThinkPad 600E. when the installation menu appear no matter what menu option i select i get the same prompt: Abort Installation? if i try to see if there are any error messages using alt+f<1-4> there is noth

  • Multipath -ll command doesn't give any output

    Hi all, I am new to configure storage in multipath. I have configured multipath in a newly installed oracle Linux 6.0 following Linux documentation; however, when I tried to list the multipath using the commands, it doesn't show any output. I have st

  • Projects Take Forever to Load Conformed Media

    Hello, I'm editing a documentary feature using Premiere Pro CC V. 8.1 (latest updates, as of today), and, lately, whenever I load my project file (which is about 8mb, and contains around 8000 separate clips, 60 hours' worth), it takes my system (whic