Centering Text with CS5

Hi Folks,
I usually add a 200px white matte around my photos, and put a couple of lines of text at the bottom to give the image a title, and to include my name.
The two lines of text end up on two seperate text layers, and I usually just use the move tool to position / centre them "by eye" ... and 1/2 the time when I've flattened the image - converted it to sRGB profile - uploaded it to the website - linked to it from a forum etc I THEN discover that I've done a bad job of aligning the text (eg line 2 may not be centred with respect to line 1 etc).
Just wondering if anyone has any workflows that would make this text aligning step easier? It would also be great if it were possible to have the rulers centered on the image (ie so zero is in the middle), with a couple of highlights representing the ends of the text - anyone know if this is possible?
Many thanks,
Cheers,
Colin Southern

Thanks folks,
Problem solved, thanks to your help!

Similar Messages

  • Centering text with drawString();

    Hi there! I'm putting some text inside some shapes (ellipses). So far woked great the alignment, here's my piece of code :
    Font thisFont = new Font("Arial", Font.PLAIN, 11);
              g.setFont(thisFont);
              g.setPaint(Color.black);
              FontMetrics metrics = g.getFontMetrics();
              int strWidth = metrics.stringWidth(this.objetivo);
              int h = metrics.getHeight();
              int fontXOffset = ((this.width - strWidth) / 2) + this.x;
              int fontYOffset = ((this.height + h) / 2) + this.y;Problem is when my string gets bigger than the ellipse width. I'd like to break it into new lines and than arrange it on the center of the shape.
    Any ideias???

    Yep, but considering that I don't know how many lines
    does my text will have, I wont be able to center it
    vertically. Because, a text with only one line, doesnt
    start at the same point as a text that has 3 lines,
    agree with me?I understand now: you want to center vertically as well as horizontally.
    You'll have to do 2 passes:
    1. determine how many lines the text will be broken into, but don't draw.
    2. draw the text, centered vertically, and additionally horizontally if you wish.
    You could either accumulate the TextLayouts from 1 to use in 2, or recompute them.

  • Centering texts with DefaultTableCellRenderer

    Hi,
    I 've created a JTable and now I am trying to center the text in the cells of the table.
    I am using an AbstractTableModel for this table and the data are store in a vector.
    I tried to extends DefaultTableCellRenderer like this but it did not work because (I think) of the vector.
    Here a snippet:
    class centerTextRenderer extends DefaultTableCellRenderer{
    public centerTextRenderer(){
    setHorizontalAlignment(CENTER );
    public void setValue( Object value){
    setText( value.toString() );
    Does anyone have a suggestion?
    --kirk123

    Your class looks OK (you don't even need to override the setValue() method). Did you tell your table to use your renderer?
    table.setDefaultRenderer(Object.class, new CenterTextRenderer());
    Note: the Java convention is to use upper case characters for all words in a class name.

  • Centering text with drawString() in applet

    I want to draw a String in the center of my applet, is there a way to tell it to draw itself centered, or is there a way to find the width of the string to position it absolutely? Which would be easier? Thanks.

    You can use the graphics' font metrics (especially the stringWidth (String) method).
    Kind regards,
      Levi

  • I need a report in SAP which allows multiple Profit centers selection with

    Hi,
        Cany anybody help me with below issue -
    I need a report in SAP which allowing multiple Profit centers selection with :
    - Profit Center #
    - Profit center Name
    - Profit center long text
    - Profit Center group
    - the related PC node showing the BU and the product category group.
    Let me know is there any report which can provide us with all this details.
    With regards.

    Hi,
    I recommend the PCA standard drill-down or interactive reports accessible via the follwoing menu path:
    Accounting --> Enterprise Controlling --> PCA --> Infosystem --> Reports for PCA
    There are several reports which allow entering profitcenter groups or profitcenters.
    Long Text is not possible. Makes also no sense to report on Long Text.
    Best regards,
    Andreas

  • Arabic Text with SKR Headr1 Font

    I have installed Indesign CC, Added New Arabic Text with SKR Headr1 Font, but arabic text is scrambled, Tried with CS5/6, same issue, I Have i7-Win7x64 Arabic Enabled

    HI Jeff,
    On more query, Do I have to buy  Minion Pro to work properly,
    Text shows crossed blocks.. looks text hidden

  • Centered text in PDF

    Hi
    I am new to this Acrobat SDK forum. I am trying to write a PDF code, but I have problems centering text. Below is a short "program" that writes the text "Centered text" starting at position x=100, y=600. But how do I center this text at some position, say x=200, y=600 ?  Can anyone help?
    - gullipeX
    %PDF-1.4
    1 0 obj
       << /Type /Catalog
          /Outlines 2 0 R
          /Pages 3 0 R
       >>
    endobj
    2 0 obj
       << /Type /Outlines
          /Count 0
       >>
    endobj
    3 0 obj
       << /Type /Pages
          /Kids [ 4 0 R ]
          /Count 1
       >>
    endobj
    4 0 obj
       << /Type /Page
          /Parent 3 0 R
          /MediaBox [ 0 0 612 792 ]
          /Contents 5 0 R
          /Resources << /ProcSet 6 0 R
                      /Font << /F1 7 0 R >>
                      >>
       >>
    endobj
    5 0 obj
       << /Length 73 >>
    stream
    BT
       /F1 24 Tf
       100 600 Td
       ( Centered text ) Tj
    ET
    endstream
    endobj
    6 0 obj
       [ /PDF /Text ]
    endobj
    7 0 obj
       << /Type /Font
          /Subtype /Type1
          /Name /F1
          /BaseFont /Helvetica
          /Encoding /MacRomanEncoding
       >>
    endobj
    xref
    0 8
    0000000000 65535 f
    0000000009 00000 n
    0000000074 00000 n
    0000000120 00000 n
    0000000179 00000 n
    0000000364 00000 n
    0000000466 00000 n
    0000000496 00000 n
    trailer
       << /Size 8
          /Root 1 0 R
       >>
    startxref
    625
    %%EOF

    Hi, Irosenth and others again.
    To try to solve my problem (because I do not know how to do this in PDF), I made a short PostScript program to check the length of the characters in Helvetiva 10 pt. A part of the program is shown below. If I have the length, I can calculate the centered position of the text in my C or Fortran program, that makes the PDF file.  This investigation gave, for instance, the lengths for A, B and W as:
    A:  6.66797
    F:  6.10840
    W: 9.43945
    When I placed the EPS file into Adobe InDesign a bit different values came out:
    A:  6.66959
    F:  6.10963
    W: 9.43942
    ... and still different in Adobe Photoshop:
    A:  6.67081
    F:  6.11075
    W: 9.44115
    I have the feeling that character lengths are given as integers in the font file (not as real numbers) and I actually have to multiply these lengths (for 10 pt. Helvetica)  with some unknown value to find the "correct" lengths of the given characters. Does anyone know the actual length of the character A in Helvetica for instance?
    PostScript program:
    /Helvetica findfont
    dup length dict begin
      {1 index /FID ne {def} {pop pop} ifelse} forall
      /Encoding ISOLatin1Encoding def
      currentdict
    end
    /Helvetica-ANSI exch definefont pop
    gsave
    /str 20 string def
    /Helvetica-ANSI findfont 10 scalefont setfont
    (A ) 50  750 moveto show
    (A)  stringwidth pop str cvs  80 750 moveto show
    (F ) 50  700 moveto show
    (F)  stringwidth pop str cvs  80 700 moveto show
    (W ) 50  650 moveto show
    (W)  stringwidth pop str cvs  80 650 moveto show
    grestore

  • Is it possible to turn off CSS and design text with HTML only?

    I'm trying to design text with HTML only ie: Font, Color, Size. The only method I'm aware of is to highlight the text and then go to Insert> Html> Text Objects. That method is tedious and time consuming.
    I'm not looking for arguments or reasons as to why I should use CSS, I'm simply looking for a solution to disable CSS and design with HTML. I'm using Dreamweaver CS5.
    Thank you,
    Paul

    Murphy,
    Thank you for your response. I checked the preferences as you advised and could not find any option to turn off CSS. I don't understand why there doesn't seem to be a straightforward solution to this, it seems so simple. The reason is that the code will be inputed into an eBay listing and therefore CSS code is not supported.
    Any other input for a seemingly simple yet complex solution to this is welcome and appreciated.

  • CS5.5 documents not compatible with CS5 documents?

    I have read through the other threads and found that documents created in CS5.5 are not backward compatible with CS5.  Unless, of course, you export them manually from 5.5.
    So ... Really?!  Are you kidding me that that a version 5.5 cannot talk to a version 5.x of something?  We bought a site license for the CS5 Master Collection but without the maintenance because we were led to believe that CS6 was a couple years off.  So when 5.5 came along it implied that there were some changes but not significant enough to warrant the CS6 title.
    Okay, now that I have vented I will ask my real question.  Is it expected that with every release of the Master Collection that it means a major change to the product(s) underneath it such that they will not be directly backward compatible?  If this is the case I would recommend that this is better explained when you are offering up the maintenace.  Had I known this I would have purchased it as well instead of being stuck with having to purchase the entire site license again.
    Thanks, Brette

    Hey there PDX buddy,
    I'm guessing from the rest of your username that you're not a professional user of page layout applications, but a sysadmin of some sort. So of course you'd be surprised to discover this:
    Is it expected that with every release of the Master Collection that it means a major change to the product(s) underneath it such that they will not be directly backward compatible?
    That's the case pretty much across the board for page layout applications.  Note that it's not the Master Collection - many of the apps included do have pretty functional cross-version compatibility. Illustrator, in particular, I've found to be pleasingly verbose about possible feature loss when saving back, offering to convert type to outlines when differences between type rendering engines in versions were likely to cause incorrect text display, and so on.
    But backwards compatibility is not a feature of page layout applications in general. It was the case for Pagemaker, it was and is the case for Quark, and it's been that way for InDesign all along. The same is the case with more obscure layout apps. The only exception I can think of is Publisher - and Publisher projects often crash and burn because there's one person who insists on sticking with Office XP or whatever, and when you use new features of Publisher in a file and then open it in an older version, it does not degrade well. I don't think that it even told you that it wasn't going to bother to try to display some of the content that came from a newer version. I even have a vague recollection of a Quark Passport issue where there was a failure of compatibility between 5.0.1 and 5.0.2, or something along those lines - just a bugfix dot release broke compatbility with the previous release.
    I'd argue that, if you need to support designers or other graphics-layout types, that software maintenance for layout applications is more important that buying software maintenance for your operating system & other software infrastructure. Heck, it's arguably equally as important as offsite backups.

  • Template problem with cs5

    I've transferred all my sites to cs5 (from cs4).  I build all my sites with DW templates.  When I bring up my pages from any site in DW cs4, I can edit them no problem.  When I bring them up in cs5, all of a sudden I have the "no-edit" symbol (red circle crossed) when I try to type over any editable areas.  Is there a setting that I am missing that I forgot to readjust when I loaded the files in cs5?
    Thanks in advance
    Jules

    I think I'm talking to myself, here...
    But just in case anyone has run into this problem with cs5...
    I usually create editable regions with content alone (minus divs).  It seems that cs5 won't allow this somehow.  I do this so that my clients won't move the div and can highlight the text that they want to change without screwing up the placement of the divs or having to click on it several times in Contribute in order to highlight the text.
    Example: (This one works)
          <!-- TemplateBeginEditable name="LeftContent" -->
       <div id="contentLeft">
            <table width="100%" border="0" align="left" cellpadding="5" cellspacing="0" background="images/transBack.png">
            <tr><td>
              <h1>Heading Goes Here</h1>
              <p>Lorem ipsum eum erant soleat perfecto ex, ei pro mentitum aliquando theophrastus. Quodsi lucilius adolescens nec te, alia melius dissentias id eum, eu vel atqui munere eligendi. Eu eum viris suscipit, mei iracundia persequeris necessitatibus ad, qui putent vocent comprehensam ea. Eos sumo illud fuisset ea, sit doming dolorum fierent ea. Vis rebum aperiri nonummy at, ne eam impedit persequeris accommodare.</p>
              <p>An dico veritus evertitur cum, mentitum legendos theophrastus mei ei, qui hinc timeam honestatis ad. Ut illum takimata gloriatur eam, ei nullam propriae delicata vel, has ea solum ludus. Pro solum ridens inciderint ad, te ius vocent perfecto, partiendo scripserit reformidans cum te. No fastidii scaevola maiestatis mei, percipit praesent abhorreant eam no. Ea vim nobis dolore ignota, quodsi inciderint ei vel. Velit dicam te cum, te inermis principes percipitur per, animal constituam his an.</p>
              </td></tr>
              </table>
              </div>
          <!-- TemplateEndEditable -->
              (This one doesn't)
       <div id="contentLeft">
    <!-- TemplateBeginEditable name="LeftContent" -->
            <table width="100%" border="0" align="left" cellpadding="5" cellspacing="0" background="images/transBack.png">
            <tr><td>
              <h1>Heading Goes Here</h1>
              <p>Lorem ipsum eum erant soleat perfecto ex, ei pro mentitum aliquando theophrastus. Quodsi lucilius adolescens nec te, alia melius dissentias id eum, eu vel atqui munere eligendi. Eu eum viris suscipit, mei iracundia persequeris necessitatibus ad, qui putent vocent comprehensam ea. Eos sumo illud fuisset ea, sit doming dolorum fierent ea. Vis rebum aperiri nonummy at, ne eam impedit persequeris accommodare.</p>
              <p>An dico veritus evertitur cum, mentitum legendos theophrastus mei ei, qui hinc timeam honestatis ad. Ut illum takimata gloriatur eam, ei nullam propriae delicata vel, has ea solum ludus. Pro solum ridens inciderint ad, te ius vocent perfecto, partiendo scripserit reformidans cum te. No fastidii scaevola maiestatis mei, percipit praesent abhorreant eam no. Ea vim nobis dolore ignota, quodsi inciderint ei vel. Velit dicam te cum, te inermis principes percipitur per, animal constituam his an.</p>
              </td></tr>
              </table>
    <!-- TemplateEndEditable -->
              </div>
    Anyone else have this?  Or even use this?
    Message was edited by: JulesN

  • How do I create transparent text with gradient stroke?

    I'm creating text that will be printed on a deep gray to black tshirt. 
    I created text, added an offset path to it with a gradient, and a deep gray color fill on top, achieving the gradient stroke.  However, I'm not exactly sure what color the shirt itself will be, other than deep gray to black.  And I didn't want the deep gray/black fill in my text to appear and look awkward on the shirt.  Unless that is something I shouldn't be considered about.
    To be safe, how would you create transparent text with a gradient stroke?  I'm using Illustrator CS5.

    aimsrandom,
    Based on a guess that you wish to have the stroke fade into the basic tshirt colour, you may use transparency rather than colour.
    But the transparent text in the headline raises a few questions.
    No fill colour for the Type/text, or different fill and (basic) stroke colour, or?

  • Design Canvas & Centering text

    Forgive me for being a noob here but I have a couple of questions :-
    1.) How do I undock the design canvas so I can use it full screen ? At the moment, everything will only snap to the grid that is the displayed part of the design canvas - not the whole screen.
    2.) How do I centre text on the screen for instance a heading ? I've used 'text-align: center' but that of course just justifies in the output text box - not the screen.
    SPG

    (1) At the moment there's no way to do that with a single gesture, but we're merging the NetBeans 4.0 window manager so in the future that will be easy.
    For now, you can click on the "pushpin"-like icon near the top of the properties and project navigator window to cause them to slide out to the right.
    (2) To get centering like this, don't use absolute positioning. Here's what you can do: go to the Source tab, and add something like this (under body or form depending on where you want it):
    <p style="text-align: center"> Hello World! </p>
    (or use h1, h2, ... instead of p.) Output Text renders a span which is an inline tag, so you can't set the text-align directly on it. If you want to use an output text (for example to value bind it), you can first add an output text (but DON'T absolute position it: either double click on the output text item in the palette, or drop it and then go remove its position, left and top properties from the style property of the output text). Then go to the source tab, locate the h:outputText you've dropped, and add a <p style="text-align: center"> right before it and </p> right after it, e.g. "wrap the output text with a p block tag).
    Hope that helps.
    -- Tor
    http://blogs.sun.com/tor

  • Spliting up stacked text with JavaScript

    I am trying to get any stacked text in my illustrator file that is a single frames  such as with carriage returns such as:
    1
    2
    3
    4
    5
    to be individual text frames.
    Is there a split command I can use?
    Can anybody point me in the right direction?
    Im thinking it would start by finding all the textframes that have carriage returns
    is the carriage return identified as "\n"
    Any help would be appreciated,
    Duane

    I got this awesome code from John Wundes. It would crash illustrator if you had more than one textframe selected. With my modifications it still will not do more than one textFrame with carriage returns.
    It runs through the first time looking for textFrames with carriage returns  in my file and when it finds one it goes into the if statement(which is all of John Wundes code.)
    But when it finishes with the first textFrame with carriage returns it keeps the first line of text selected and quits when moving on to the second textFrame with carriage returns. Does anyone know why it quits
    //Divide TextFrame v.2.1 -- CS,CS2,CS3,CS4,CS5
    //>=--------------------------------------
    // Divides a multiline text field into separate textFrame objects.
    // Basically, each line in the selected text object
    // becomes it's own textFrame. Vertical Spacing of each new line is based on leading.
    // This is the opposite of my "Join TextFrames" scripts which
    // takes multiple lines and stitchs them back together into the same object.
    // New in 2.1 now right and center justification is kept.
    //>=--------------------------------------
    // JS code (c) copyright: John Wundes ( [email protected] ) www.wundes.com
    //copyright full text here:  http://www.wundes.com/js4ai/copyright.txt
        added code part 1 Start
    var doc = app.activeDocument.activeLayer;
    var myTextFrames = doc.textFrames;
    for (i = 0; i < myTextFrames.length; i++) {
                                                                                                  alert("starting textFrmes length" + "the amout text frames = " + i);
      myContent  = myTextFrames[i].contents.toString();
      if (myContent.indexOf("\r") !== -1) {
                                                                                                 alert("starting selected text with carriage returns");       
          myTextFrames[i].selected = true;
        added code part 1 End
    var item =  activeDocument.selection[0];
    var selWidth = item.width;
    if(item.contents.indexOf("\n") != -1){
        //alert("This IS already a single line object!");
    }else{
        //get object position
        //getObject justification
        var justification = item.story.textRange.justification;
        //make array
        var lineArr = fieldToArray(item);
        //alert(lineArr);
        tfTop = activeDocument.selection[0].top;
        tfLeft = activeDocument.selection[0].left;
        activeDocument.selection[0].contents = lineArr[0];
        //for each array item, create a new text line
        var tr = activeDocument.selection[0].story.textRange;
        var vSpacing = tr.leading;
        for(j=1 ; j<lineArr.length ; j++){
            bob = activeDocument.selection[0].duplicate(activeDocument, ElementPlacement.PLACEATBEGINNING);
            bob.contents = lineArr[j];
            bob.top = tfTop - (vSpacing*j);
            if(justification == Justification.CENTER)
                 bob.left = (tfLeft + (selWidth/2)) - (bob.width/2);   
        else
                if(justification == Justification.RIGHT)
                bob.left = (tfLeft + selWidth) - bob.width;   
        else
               bob.left = tfLeft;
            bob.selected = false;       
        added code part 2 Start
    else {
      //alert("The contents of frame "+ i + " is = "+ myContent); 
        added code part 2 End
    function fieldToArray(myField) {
        if (myField.typename == "TextFrame") {
            retChars = new Array("\x03","\f","\r","\n");
            var ct = 0;
            var tmpTxt = myField.contents.toString();
            for (all in retChars )
            tmpArr = tmpTxt.split(retChars[all]);
            ct+= tmpArr.length;
            //--and just for kicks...
            ct+=1;
            //alert(ct);
            while (ct>0) {
                //throw something lucicrious as a content divider...
                tmpTxt = tmpTxt.replace(/[\x03]|[\f]|[\r\n]|[\r]|[\n]/,"_:X:_");
                ct--;
            return tmpTxt.split("_:X:_");

  • I cant transform my text to 3d text with my photoshop cc what can i do? all 3d options seem to be blocked

    hello i cant transform my text to 3d text with my photoshop cc what can i do? all 3d options seem to be blocked

    Also check your system's capabilities against the Adobe Photoshop requirements:
    System requirements | Photoshop
    -Noel

  • Want to open Kodak Photo CD files (.PCD) in Photoshop CS5.  In CS4 i copied file "Photo CD.8BI"  from an older version into the File Format folder.  This does not work with CS5.  Any fix?

    I have several old Kodak Photo CD with PCD image files.  I am now using Photoshop CS5.  Some years ago while using Photoshop CS4 I copied a file:  "Photo CD.8BI" from an older, CS2, version to the Plug-ins/File Format folder of CS4.  This does not appear to work with CS5.  Any fix?

    It can be made to work, but you have to run the 32 bit version of Photoshop CS5, and as I recall there's an additional DLL called pcdlib32.dll that's needed from the old installation.
    See also:  Open Kodak PhotoCD files in PS CS5 - is it possible? (Win XP)
    -Noel

Maybe you are looking for

  • Tried to update reader to V 11.0.7 under Windows 8.1. Update always stops with Error: 1116

    I tried to update my Adobe Reader to version 11.0.7 I have win 8.1 64 latest updates. The update procedure ends with error : 1116. I downloaded `AdbeRdrUpd11007.msp` und tried to update  and got error message: The File `acrosup64.dll`is not marked fo

  • Update and combobox

    Hi all! I have a problem that i to reach impasse.There fore,Can you help me? i am writting code for your's form ,This Form have one datagrid to display data.in datagrid ,I used 1 Combobox to select values for ***(nam,nu), Ok button ,cancel button and

  • Is It Possible To Copy Files To Multiple DVDs/CD-Rs In One Shot?

    Hi... I want to copy a complete set of files I have to make a backup of them onto DVD. However, the total amount of disk space is larger than a standard dvd... Is it possible for someone to copy them so they span several DVDs by splitting up the data

  • SQL message: ORA-03113: end-of-file on communication

    Hi Experts, We having an issue with Oracle message Dump also explains this: The termination occurred in ABAP program "SAPMSSY2", in "GET_CNTL_VALUES". T main program was "SAPMSSY2". In the source code, the termination point is in line 60 of (Include)

  • Ezvpn not so ez

    We are evaluating an asa5520 and are attempting to build a site to site 3des ipsec vpn with an 851. We followed the examples in a cisco how to, but can't get the tunnel up. Show crypto isakmp sa shows the router is in AG_INIT_EXCH state, and debugs s