Centered text not centered on DVD

I have created a movie from home videos.  I have used the "Vertical Drift" text in a couple places.  Even though the text shows in my preview window with no problems, when burned to a DVD, the text is cut off.  This happens on all settings on our TV (Zoom, Stretch, Side Bars and another one I can't remember).  I would appreciate any suggestions as to how I can prevent this.
Thanks
Peg

In iDVD (under the iDVD Menu) click on Preferences, then click on the Slideshow tab, click the checkbox labeled: Always scale slides to TV Safe Area
The TV Safe Area is the extra space around the middle that iDVD uses to calculate how big things should appear. It will add more space around the titles to make sure they don't get cut off.

Similar Messages

  • Text not centered

    I'm recording an action and want the text to be centred horizontally. It just won't do it. Pressing the paragraph buttons shjoot the text off the side and seems to be based on where you intially type the text in the first place. This must be the simplest thing on PS why won't the text just jump to the middle of the photo?
    Secondly I'm drawing a selection around the text (then filling with black). There seems to be no way to centralise a selection box either. As when I run the action on different sized photos the box and text end up in completely different places, separately. Why is this and how can I centralise a selection too?

    No it's not working the text layer is jumping to be aligned the black box the text sits on is not moving with it. This is my process:
    Open image
    Duplicate background (because black box has to sit on a separate layer?
    type text and position roughly
    draw selection round box, edit> fill with black
    selct text layer, layer>type>convert to shape
    highlight this layer and duplicate layer (even tried to link the two via a clipping layer no joy either)
    CTRLA
    Move tool (only the text moves...)
    Can you help with my process John?

  • Nested DIV's Not Centering

    Hello,
    On my page I'm working on, one of my div's is not centering correctly.  The class applied has margin set to auto, but the image in the tag is still justifying to the left.  The class the is not displaying correctly is .portfolio-center. 
    Here is the page:
    http://littlechisel.com/clients/little-chisel-new/print.html
    Here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="css/little-chisel-styles.css" rel="stylesheet" type="text/css" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Little Chisel Design Print</title>
      <!-- InstanceEndEditable -->
      <!-- InstanceBeginEditable name="head" -->
      <!-- InstanceEndEditable -->
      <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
      </script>
      <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-30573696-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script> 
    </head>
    <body onload="MM_preloadImages('images/print-over.jpg','images/web-over.jpg','images/logos-over .jpg','images/bus-id-over.jpg','images/photo-ret-over.jpg','images/about-over.jpg','images /contact-over.jpg','images/facebook-over.jpg','images/twitter-over.jpg','images/linked-in- over.jpg','images/pinterest-over.jpg')">
    <div id="wrapper">
              <div id="header">
                  <div id="header-box">
                      <div id="template-social-media-links"><a href="https://www.facebook.com/pages/Little-Chisel-Design/194073243948201?ref=stream&__req=r" target="new" onmouseover="MM_swapImage('facebook','','images/facebook-over.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/facebook.jpg" alt="Facebook" width="31" height="29" id="facebook" /></a><a href="https://twitter.com/ChiselDesign" target="new" onmouseover="MM_swapImage('twitter','','images/twitter-over.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/twitter.jpg" alt="Twitter" width="31" height="29" class="social-media-links" id="twitter" /></a><a href="http://www.linkedin.com/profile/view?id=117449571&goback=%2Enmp_*1_*1_*1_*1_*1_*1_*1_*1_*1 &trk=spm_pic" target="new" onmouseover="MM_swapImage('linked-in','','images/linked-in-over.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/linked-in.jpg" alt="Linked In" width="31" height="29" class="social-media-links" id="linked-in" /></a><a href="http://pinterest.com/littlechisel/" target="new" onmouseover="MM_swapImage('pinterest','','images/pinterest-over.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/pinterest.jpg" alt="Pinterest" width="31" height="29" class="social-media-links" id="pinterest" /></a></div>
                            <div id="template-header"><a href="index.html"><img src="images/logo.jpg" width="466" height="174" alt="logo" /></a><img src="images/tagline.jpg" alt="Shaping Ideas Into Graphic Art" width="391" height="110" class="tagline" /></div>
                            <div id="template-nav-bar">
                                        <div id="template-nav-bar-color"></div>
                                        <div id="template-nav-bar-links"><a href="print.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('print','','images/print-over.jpg',1)"><img src="images/print.jpg" alt="Print" width="54" height="26" id="print" /></a><a href="web.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('web','','images/web-over.jpg',1)"><img src="images/web.jpg" alt="Web" width="53" height="26" id="web" /></a><a href="logos.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('logos','','images/logos-over.jpg',1)"><img src="images/logos.jpg" alt="Logos" width="58" height="26" id="logos" /></a><a href="business-identity.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('business-id','','images/bus-id-over.jpg',1)"><img src="images/bus-id.jpg" alt="Business Identity" width="116" height="26" id="business-id" /></a><a href="photo-retouching.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('photo-ret','','images/photo-ret-over.jpg',1)"><img src="images/photo-ret.jpg" alt="Photo Retouching" width="122" height="26" id="photo-ret" /></a><a href="http://about.me/kathy.moncelsi" target="new" onmouseover="MM_swapImage('about','','images/about-over.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/about.jpg" alt="About Me" width="77" height="26" id="about" /></a><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','images/contact-over.jpg',1)"><img src="images/contact.jpg" alt="Contact" width="77" height="26" id="contact" /></a></div>
                              </div>
                        </div>
              </div>
    <!-- InstanceBeginEditable name="Edit1" -->
    <div id="content">
              <div id="content-box">
                <div class="portfolio-text-first">
                                  <p class="category">PRINT DESIGN</p>
                            <p class="title">Here's to Good Food<br />
                              <span class="description">Cookbook Cover</span></p>
                </div>
                                  <div class="portfolio-full-width"><img src="images/print-htgf.jpg" width="709" height="510" alt="Heres to Good Food Book Cover" />
                </div>
                <div class="portfolio-text">
    <p class="title">A Movie Lover's Guide to Film Language<br />
      <span class="description">One Sheet DVD Promotion</span></p>
                                    </div>
                <div class="portfolio-center"><img src="images/print-movie-lovers-onesheet.jpg" width="485" height="627" alt="Movie Lovers One Sheet" />
                </div>
                                  <div class="portfolio-text">
    <p class="title">Kaya Mansa Wellness<br />
      <span class="description">Business Card and Label Design</span></p>
                                    </div>
                <div class="portfolio-print">
                                            <div class="print-left"><img src="images/print-kaya-lily.jpg" width="350" height="255" alt="Asian Lily Label" />
                                            </div>
                                     <div class="print-right"><img src="images/print-kaya-cedar.jpg" width="350" height="255" alt="Atlas Cedarwood Label" />
                            </div>
                                            <div class="kaya-print-left-bottom"><img src="images/print-kaya-berry.jpg" width="350" height="255" alt="Goji Berry Label" />
                                            </div>
                                            <div class="kaya-print-right-bottom"><img src="images/print-kaya-lavender.jpg" width="350" height="255" alt="Lavender Label" />
                    </div>
                                            <div id="print-kaya-card"><img src="images/print-kaya-card.jpg" width="407" height="233" alt="Kaya Mansa Business Card" /></div>
                                  <div class="portfolio-text">
    <p class="title">Silver Line Windows<br />
      <span class="description">Mailers, Literature and Sales Catalog Covers/Pages</span></p>
                                    </div>
                <div class="portfolio-print">
                                              <div class="print-left"><img src="images/print-sl-mailer1.jpg" width="350" height="453" alt="Trade Show Mailer 1" />
                                            </div>
                                             <div class="print-right"><img src="images/print-sl-mailer2.jpg" width="350" height="453" alt="Trade Show Mailer 2" />
                                            </div>
                                  </div>
                                  <div class="portfolio-print-under">
                             <div class="print-left-pitch-cvr"><img src="images/print-sl-pitchcover.jpg" width="406" height="382" alt="Sales Catalog Cover" />
                                            </div>
                                            <div class="print-right-pitch-page"><img src="images/print-sl-pitchpage.jpg" width="292" height="382" alt="Sales Catalog Page" />
                            </div>
                                  <div class="portfolio-print-under">
                                            <div class="print-left"><img src="images/print-sl-bindercover.jpg" width="350" height="364" alt="Sales Binder Cover" /></div>
                    <div class="print-right"><img src="images/print-sl-binderback.jpg" width="350" height="364" alt="Sales Binder Back" /></div>
                                  </div>
                <div class="portfolio-print-under">
                  <div class="print-left"><img src="images/print-sl-8500cover.jpg" width="350" height="458" alt="Series 8500 Literature Cover" /></div>
                  <div class="print-right"><img src="images/print-sl-8500page.jpg" width="350" height="458" alt="Series 8500 Literature Page" /></div>
                </div>
                                  <div class="portfolio-text">
      <p class="title">Windows Plus<br />
      <span class="description">Weather-Weld Literature</span></p>
                                  </div>
                <div class="portfolio-center"><img src="images/print-sl-weatherweld-cvr.jpg" width="350" height="442" alt="Weather Weld Literature cover" /></div>
                <div class="portfolio-full-width"><img src="images/print-sl-weatherweld-pages.jpg" width="709" height="461" alt="Weather Weld Literature Pages" /></div>
                </div>   
                                  </div>           
              </div>
    </div>
    <!-- InstanceEndEditable -->
              <div id="footer">
                          <div id="template-footer">
                            <div id="template-footer-links"><a href="index.html">Home</a> | <a href="print.html">Print</a> | <a href="web.html">Web</a> | <a href="logo.html">Logos</a> | <a href="business-id.html">Business Identity</a> | <a href="photo.html">Photo Retouching</a> | <a href="http://about.me/kathy.moncelsi" target="new">About Me</a> | <a href="contact.html">Contact</a></div>
                                    <div id="template-footer-left">Little Chisel Design | <a href="mailto: [email protected]">[email protected]</a> | 848.219.2385</div>
                                   <div id="template-footer-right">©2013 All Rights Reserved | Web Design by Little Chisel Design</div>
                        </div> 
              </div>
    </div>
    </body>
    <!-- InstanceEnd --></html>
    @charset "utf-8";
    .portfolio-text-first {
              font-family: Tahoma, Geneva, sans-serif;
              margin-right: 137px;
              margin-left: 137px;
              padding-top: 10px;
              color: #7B0909;
    .portfolio-print-under {
              width: 983px;
              margin-top: 10px;
    .print-right-pitch-page {
              width: 846px;
              margin-left: 554px;
    .print-left-pitch-cvr {
              float: left;
              width: 406px;
              margin-right: 10px;
              margin-left: 137px;
    .kaya-print-right-bottom {
              width: 847px;
              margin-left: 497px;
              margin-top: 10px;
    #print-kaya-card {
              width: 407px;
              margin-left: 288px;
              margin-top: 10px;
    .kaya-print-left-bottom {
              float: left;
              width: 350px;
              margin-right: 10px;
              margin-left: 137px;
              margin-top: 10px;
    #index-footer {
              font-family: Tahoma, Geneva, sans-serif;
              font-size: 10px;
              color: #7b0909;
              font-weight: bold;
              margin-right: auto;
              margin-left: auto;
              width: 983px;
              margin-top: 10px;
    html,
    body {
              margin: 0;
              padding: 0;
              height: 100%;
              background-image: url(../images/sand-texture.jpg);
              background-repeat: repeat;
              background-attachment: fixed;
    #wrapper {
              min-height: 100%;
              position: relative;
    #wrapper-index {
              width: 983px;
              margin-right: auto;
              margin-left: auto;
    #header {
              padding-top: 10px;
              padding-bottom: 0px;
              padding-left: 0px;
              background-image: url(../images/sand-texture.jpg);
              background-repeat: repeat;
              width: 100%;
              background-attachment: fixed;
              margin-right: auto;
              margin-left: auto;
    #content {
              padding-bottom: 35px;
              width: 983px;
              margin-right: auto;
              margin-left: auto;
              background-attachment: fixed;
    #footer {
              width: 100%;
              height: 35px;
              position: fixed;
              bottom: 0;
              left: 0;
              background-image: url(../images/sand-texture.jpg);
              background-repeat: repeat;
              padding-top: 15px;
              padding-bottom: 5px;
    .portfolio-full-width {
              width: 846px;
              margin-left: 137px;
              margin-top: 10px;
              margin-bottom: 20px;
    .print-left {
              float: left;
              width: 350px;
              margin-right: 10px;
              margin-left: 137px;
    .print-right {
              width: 847px;
              margin-left: 497px;
    #template-social-media-links {
              width: 133px;
              margin-top: 5px;
              margin-left: 850px;
    #index-social-media-links {
              width: 983px;
              margin-right: auto;
              margin-left: auto;
    #header-box {
              margin-left: auto;
              width: 983px;
              margin-right: auto;
    #template-header {
              width: 983px;
    .tagline {
              margin-left: 126px;
    #template-nav-bar {
              width: 983px;
    #template-nav-bar-color {
              background-color: #7b0909;
              height: 26px;
              width: 426px;
              float: left;
    #template-nav-bar-links {
              background-color: #7b0909;
              height: 26px;
              width: 557px;
              margin-left: 426px;
    .social-media-links {
              margin-left: 3px;
    #template-movie {
              height: 355px;
              width: 983px;
    #template-editable-area {
              width: 983px;
              margin-right: auto;
              margin-left: auto;
    #content-box {
              margin-right: auto;
              margin-left: auto;
              width: 983px;
    .category {
              font-size: 16px;
              font-weight: bold;
    .title {
              font-size: 13px;
              font-weight: bold;
    #template-footer {
              font-family: Tahoma, Geneva, sans-serif;
              font-size: 10px;
              color: #7b0909;
              font-weight: bold;
              margin-right: auto;
              margin-left: auto;
              width: 983px;
    #template-footer-left {
              width: 491px;
              float: left;
    #template-footer-right {
              width: 492px;
              margin-left: 491px;
              text-align: right;
    a {
              color: #7D441F;
    a img {border: none;
    a:link {
              text-decoration: none;
    a:visited {
              text-decoration: none;
              color: #7D441F;
              border: none;
        outline: none;
    a:hover {
              color: #7B0909;
              border: none;
              outline: none;
    a:active {
              text-decoration: none;
              color: #7D441F;
              border: none;
        outline: none;
    #index-squares {
              height: 355px;
              width: 983px;
    #portfolio-print {
              width: 983px;
    .portfolio-text {
              font-family: Tahoma, Geneva, sans-serif;
              margin-right: 137px;
              margin-left: 137px;
              padding-top: 10px;
              color: #7B0909;
              margin-top: 20px;
    .portfolio-center {
              width: 983px;
              margin-left: auto;
              margin-right: auto;
    .portfolio-print {
              width: 983px;
              margin: auto
    .description {
              font-size: 13px;
              font-style: italic;
              font-weight: normal;
    #template-footer-links {
              width: 983px;
              text-align: center;
              margin-bottom: 10px;
              font-size: 11px;
    .slideshow {
              height: 355px;
              width: 983px;
              margin: auto;
              background-color: #7B0909;
              background-image: url(../images/index-squares-bkrd.jpg);
    Thank you!

    Use text-align center and apply the center class to a paragraph tag.
    .center {text-align:center}
    <p class="center"><img src="images/print-movie-lovers-onesheet.jpg" alt="Movie Lovers One Sheet" height="627" width="485"></p>
    Nancy O.

  • How do I place a transparent image over specific, centered text?

    I'm helping someone with a site that flows sales copy down the center of the browser window. We want to take a transparent oval and place it over a price that will be in the copy. (It would look like someone took a marker and circled the price.)
    I had learned that AP Div could solve this problem and, to an extent, it does. I can place the oval right over the price. But it only works when the copy is left justified, not centered. If the copy is centered, I can place the oval, but if the browser window is resized, the oval stays in place while the copy is reflowed to the new browser window size. Thus the oval is no longer over the correct text.
    Then I learned that Layout Mode might solve this problem, however that has been removed from CS4.
    So now my question is how do I to take a transparent .png file and place it over copy on this site so that if the browser window is resized, the .png file stays with the correct text as the text is "moved" to stay in the center of the brower window?
    I want to avoid the workaround of simply creating a .png with the oval and the price and inserting that in the middle of the copy at the appropriate place. There must be a better way to handle this. Not being too familiar with Dreamweaver, maybe there's some sort of Anchor function similar to one in InDesign that solves this issue.
    I've attached the simple oval .png file we're trying to use for this.
    Thanks in advance for any help.

    How about having the circle underneath the text? I know it's a compromise, but it will be much easier to do as you can assign a background image to the div or table cell which holds the text.
    For example, make a blank graphic and create a class:
    .price
        background-image: url(nocircle.png);
    then assign it to the text and give each text div a unique name
    <div class="price" id="price1">10.99</div>
    then you can turn the background image on and off using Dreamweaver's javascript controls, for example:
    onclick="MM_changeProp('price1','','background-image','url(circle.png)','DIV');"
    Hope that helps.
    Peter

  • Page not centering and background repeat issue in Safari

    I recently put up a new website. It seems to be working and displaying fine in IE, Chrome and FF. My problem is Safari. The page is not centering (going left) and I'm also having a problem with
    the background image of my FOOTER div not repeating. I'm sure this is something simple (ie:stupid) I did but it just eludes me. The other interesting thing is that the background image for the footer
    (which is the grass image) is actually 1024px wide but it's not displaying it fully or else it's compressing it. Here's a link to the website. Any insights are appreciated. I am using Safari on an iPad if
    that matters.
    www.cardinalwood.com
    Donna

    Non-breaking spaces should not be used as a layout device. 
    <p>We are members of these fine NC Organizations.
          &nbsp 
    Click the logos to learn more.</p>
    It's much better to use CSS to control alignment of elements on your pages.
    <p style="float:right: text-align:center">We are members of these fine NC Orgnizations <br />
    Click the logos to learn more.</p>
    You have a couple of CSS errors that need attention.
    http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fwww. cardinalwood.com%2F
    The iPad display is 768px wide in portrait view and 1024px wide in landscape view.  Which view are you using to test your site?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Numbered headers with centered text: the numbers are off to the side.

    Hi,
    I'm trying to create typical numbered headers as they appear in law reviews. For example, (I used underscore characters here to represent characters):
    ___________________III.Judge-made law
    However, Pages seems to only do this:
    III.___________________Judge-made law
    That is, the text is centered, but the number is always in the left margin. Is there anything I can do about this?
    Thanks!
    Message was edited by: pdxlatenite
    Message was edited by: pdxlatenite

    Well, I'm not trying to write to the left of the list; I want to change the list number/character's formatting/placement, especially when the list text is centered.
    It looks like this kind of header, a centered one, wasn't contemplated by the creators of the software.

  • Centering text in a cell in a JTable

    Hi,
    I have a program that reads in data from a text file and display it in a JTable. My problem is that the data in each cell is not centered, it is left justified within that cell.
    How can I fix this.
    --kirk                                                                                                                                                                                                                                                                                                                                                                                                                                            

    To align a text inside a cell you have to go through the rendering classes of a Jtable. You can do lots of formatting by using a render class. Heres my code that i use.
    1. The first code aligns your data centered inside the cell.
    2. The second code aligns it like code1 but has an additional character to be printed beside your data inside the text.
    ///////////// TO USE THE RENDER CODE IN YOUR APPLICATION /////
    TableColumn col1 = table.getColumnModel().getColumn(1);
    col1.setCellRenderer( new SimpleRenderer());
    or
    TableColumn col1 = table.getColumnModel().getColumn(1);
    col1.setCellRenderer( new SimpleRenderer( "$" ));
    ///////////// RENDER CODE IS HERE //////////////
    import javax.swing.table.*;
    import javax.swing.border.*;
    import javax.swing.*;
    import java.awt.*;
    public class SimpleRenderer extends JLabel implements TableCellRenderer
         Border unselectedBorder = null;
         Border selectedBorder = null;
         String text = "";
         Color foreColor = Color.black;
         Color backColor = new java.awt.Color( 217,217,255 );
         Color selectedColor = new java.awt.Color( 217,217,255 );
         public SimpleRenderer()
         super();
         setHorizontalAlignment( JLabel.CENTER );
         setOpaque( true );
         } // end of CONSTRUCTOR
         public SimpleRenderer( Color foreGround, Color backGround )
         super();
         setHorizontalAlignment( JLabel.CENTER );
         setOpaque( true );
         this.foreColor = foreGround;
         this.backColor = backGround;
         } // end of CONSTRUCTOR
         public SimpleRenderer( String data )
         super();
         text = data;
         setHorizontalAlignment( JLabel.CENTER );
         setOpaque( true );
         } // end of CONSTRUCTOR
         public Component getTableCellRendererComponent(
              JTable table, Object object, boolean isSelected, boolean hasFocus,
                                                                                    int row, int column)
         try
              if ( backColor != null )
                   if ( (row % 2 ) == 1 )
                             setBackground( backColor );
                   else
                             setBackground( Color.white );
              if ( foreColor != null )
                   setForeground( foreColor );
              if ( hasFocus )
                   if ( isSelected )
                             setBackground( selectedColor );
                   else
                             setBackground( Color.white );
              String newData = "" + object;
              if ( newData.trim().equals( "" ))
                   setText( "" );
              else
                   setText( text + " " + object );
              if (isSelected)
              if (selectedBorder == null)
                   Border border, raisedBevel, loweredBevel;
                   raisedBevel = BorderFactory.createRaisedBevelBorder();
                   loweredBevel = BorderFactory.createLoweredBevelBorder();
                   Border colorLine = BorderFactory.createLineBorder(Color.red);
                   border = BorderFactory.createCompoundBorder( raisedBevel,loweredBevel);
                   selectedBorder = BorderFactory.createCompoundBorder( border, colorLine);
              setBorder(selectedBorder);
              else
              if (unselectedBorder == null)
                        unselectedBorder = BorderFactory.createMatteBorder(0,0,0,0,
                        table.getBackground());
              setBorder(unselectedBorder);
         catch( ClassCastException e )
         return this;
         } // end of GETTABLECELLRENDERERCOMPONENT method.
         public void setForeColor( Color data )
         foreColor = data;
         } // end of SETFORECOLOR method.
         public void setBackColor( Color data )
         backColor = data;
         } // end of SETBACKCOLOR method.
    } /** end of CLASS **/
    /////////////

  • 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

  • Poster image not centering in browser

    My poster image (for viewing in IE8) is not centering in the browser window. It's displaying as left aligned with a big gap to the right of the image. How do I fix?

    Thank you Hemanth, that is exactly what I am referring to. One final question though, as I am by no means an HTML guru...do I add the snippet while I'm in Edge or do I open the HTML file in Dreamweaver and add the code there?
    If in Edge, where do I access the code to add it (and where does it go)?
    If in Dreamweaver...here is the code for my file, where  would I place the snippet?
    <!DOCTYPE html>
    <html>
    <head>
              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
              <title>Untitled</title>
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="FEA2014_Invite_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-450331542 { visibility:hidden; }
        body {
              background-color: #000000;
        </style>
    <!--Adobe Edge Runtime End-->
    </head>
    <body style="margin:0;padding:0;">
              <div id="Stage" class="EDGE-450331542">
              </div>
    </body>
    </html>
    I GREATLY appreciate this advice!
    Many thanks,
    James

  • Centering text frame into rectangle

    Hi everybody, i'm pretty a new-by with indesign so be kind with me
    I was trying to center "2 objects": actually, a text frame inside a colored rectangles. My goal is to have the frame containing the text exactly centered into the main rectangle.
    As you can see i'd like to be able to center the text frame "Address" into the big cyan rectangle. I could do it manually but the result would be different from the rest of the text frame i have to center (date of birth...and so on).
    Thanks for your help people!

    Also keep in mind that whether you use two objects (text frame and colored box) or one text frame like Peter suggested, the positioning of the text is based on the full size of the font, which is measured from the lowest descender to the highest ascender. So, a box with an upper case A and one with a lower case j will have different distances from the top and bottom of the box, so if what you want is an even amount of box around your text, you might have to make an adjustment.
    All boxes are aligned the same, but not visually centered.

  • Centering text...

    I'm wondering if there is any easy way that would allow you to figure out how you can aline text so that the center of it is at a certain point. For example, you have (pointX,pointY) and thats what the text is centered around on, and you ABC as the string... I want to have the center of the B to be at pointX...any ideas?

    I'm wondering if there is any easy way that would
    allow you to figure out how you can aline text so that
    the center of it is at a certain point. For example,
    you have (pointX,pointY) and thats what the text is
    centered around on, and you ABC as the string... I
    want to have the center of the B to be at pointX...any
    ideas?Got an idea... Hope it is correct, I am a bit tired and math is not my strong side then :) This method below must off course be called from a paint method of some kind:
        public void drawText(Graphics2D g) {
            // Lets set some attributes first.
            AttributedString astr = new AttributedString("A string");
            astr.addAttribute(TextAttribute.FONT, "Helvetiva");
            astr.addAttribute(TextAttribute.SIZE, 14);
            TextLayout tl = new TextLayout(astr.getIterator(), g.getFontRenderContext());
            // Get the height and width
            int width = (int) tl.getBounds().getWidth();
            int height = (int) tl.getBounds().getHeight();
            // This is our center
            int centerX = 5;
            int centerY = 5;
            // Calculate where the corner start. (I hope :))
            int pointX = centerX - width/2;
            int pointY = centerY - height/2;
            // Draw it in the canvas
            tl.draw(g, pointX, pointY);
        }I suggest you read a bit about AttributedString, TextAttribute, TextLayout and Rectangle2D. As those are the ones I use here.
    -s

  • HTMLEditorKit Centering Text

    Hello,
    I am writing a basic html editor which uses a textPane and java's HTMLEditorKit. The program allows the html to be saved.
    At the moment the text can only be written in a row by row form. And I would like to add the option of centering text, and images Which could be switch on and off, suchas in Microsoft's word.
    Could anyone provide an example of how to achieve this, or over some guidance.
    Thank you

    Thanks,
    I had a look at the site, though I could not find the answer, to how to use the java tools StyleSheet HTMLDocument and HTMLEditorKit kit. And allow the user to center text and images within a textpane, which would add the center tag to the HTMLDocument which contains the html template.
    Could you possibly advice further?

  • My document is not centered on page

    I am running Acrobat 10.0.0, MAC OSX 10.7.2 (Lion), and Indesign CS5.5
    I can not get my document to center on the printed page.
    When I open my PDF document, it appears normally and shows in portrait mode. The document was created as 6.88 in wide x 10.25 in tall.  The Properties of the PDF file for the document correctly show the page size as 6.88 x 10.25.
    When I click on PRINT, the default dialog shows the document correctly but indicates a 8.5 x 11 page size.  I click on the Page set up and select a custom paper size of 6.88 x 10.25 inches and return to main print dialog.
    The print dialog now shows my document and the page dimensions show my newly created page size.  I click auto rotate and center.  The page orientation and size match the document and PDF orientation regardless of auto rotate on or off.  I still select auto rotate and center as I want the centering.
    The print comes out not centered and clipped.  No combination of selections yields a correct print out.  I just can't get my image to center on the output page.
    I can print the same PDF file from Preview with same selections and have no problem with getting the document to center on the page.  I would use Preview as the work flow except preview does not print the document faithfully for color compared to Acrobat.
    Thanks in advance for all help and advice!
    dan mckinney

    OK,  Mystery solved.  There is no great problem with OSX, CS5.5, etc.  I was the problem.
    I went back and created a document from scratch that was very simple in order to convence myself that a document could print correctly as a simple page.  (basically removed all other variables that might have crept into the file that was frustrating me.)  I created a PDF by exporting as well as printing to the postscript creating "printer" and then distilling the PSD file into a PDF as well as letting Preview convert the file into a PDF.  Point is that I created a PDF various ways.
    I then loaded Adobe Acrobat Pro (10.0) to generate the output.  I found that the Page Set Up button would allow me to overide the default successfully despite the warning.
    The "trick" was to be sure that I had the paper size AND orientation selected correctly in the Print Set Up that matched exatly how I used Print Set Up in InDesign.
    Voila, output as expected.
    The take-a-way for those also frustrated is that there is no great devious problem with the OSX 10.7 or CS5.5 software packages.  The output CAN be obtained just keep playing until you ask the system to do what you want it to do. =)

  • Blurry text when centering textfield in datagrid

    Gidday
    I'm have a TextFormatAlign.CENTER alignment on the textfields in my datagrid column headers.
    The text sometimes gets blurry, depending on how the window is resized.
    I normally use Math.round() when positioning text fields, and I'm applying the same technique in the resize function for the header fields. The textfields themselves are rounding to the nearest x pos, but I'm guessing it's still blurry sometimes because the centered text could be 1/2 a pixel out?
    Is there a way to kill the blurriness?
    Cheers guys

    It's a custom coded datagrid that doesn't use the normal classes. I'll get the dude that wrote it to take a look. Cheers kGlad.

  • Crystal Reports are not centered when viewing on Crystal Viewer

    Hi
    I´d like to ask you if you reported some problem of using subreports and during the visualization from the Crystal Viewer the main report and of course the subreports are not centered. I´m running Vs.Net 2005 with CR 10.
    The main report and subreports access ADO.NET. Only one parameter is passed by the user. If we test the application and address the visualization to the crystal report viewer it is showed on right side even using DisplayGroupTree = False. But if we export the report to PDF it is showed centered. Is it a way to fix this one?
    Any advice or suggestions?
    Tks,
    Isocler

    When you say you're using v10 with VS2005, do you mean the full CR v10 product or the version that comes with VS.NET 2005 (version 10.2)?  Make sure you're using/referencing the 10.2.* CR assemblies in your project, as the 10.0.* are not supported.
    If you have the correct assemblies referenced, then make sure you have the latest patches applied.  I think there may have been a fix for DIV tags.
    -MJ

Maybe you are looking for

  • ITunes 10.3.1... STOP ACCESSING THE iTUNES STORE!

    I am serious! If I click on anything it tries to access the iTunes store stopping me from doing anything while that annoying pop-up shows me that it's trying to access the iTunes store. Please help?

  • Capturing from my HDR FX7

    Thank you Tom I just already solve my problem trashing Adolfo

  • Which monitors for digital photography?

    What features should be considered when choosing a color monitor for handling and editing digital photographs? What considerations should be given to size, resolution and features? What are some brand names that are reasonably priced that have the im

  • Is there a Stop playback file automatically control?

    I figured out how to add markers in MainStage, (you do it in Logic before import I see you can set controls to Play from... Current Marker. Is there anyway to get a file to STOP playing automatically when it hits the next marker? please help.

  • I want to learn HR functional

    Hi, Currently I am working as a Technical Consultant . I am intrested in SAP HR. I need to learn SAP HR functionally .Can any one give me guidance How to start SAP HR functionally.. send me the books if any one having to my mail ID [email protected]