title: Text with spaces split to new line when using pango_layout
body: <p>I am new to the Embedded Linux. I am trying to display a string text different alignments. But when I use the Pango. It aligned correctly for the single words without space characters in it. But some my string contains spaces to separate words. But it aligned int the new line when using the pango_layout.
  I am running my application in Ubuntu using GCC as the compiler and the system include directory shows pongo-1.0.</p>
  <p>And my code is given below</p>
  <pre><code> pLayOut = pango_cairo_create_layout(pCntxt);
     pango_layout_set_text(pLayOut, &quot;Sample text #1&quot;, -1);
     desc = pango_font_description_from_string(font);
     pango_layout_set_font_description(pLayOut, desc);
     pango_font_description_free(desc);
  
     cairo_set_source_rgb(pCntxt, rgbRed,rgbGreen, rgbBlue);
  
     //Set width of the layout to align correctly
     cairo_text_extents(pCntxt, &quot;Sample text #1&quot;, &amp;extents);
     pango_layout_set_width(pLayOut, extents.width);
  
     cairo_move_to(pCntxt, pPar-&gt;tpUlX, pPar-&gt;tpUlY);
     pango_layout_set_alignment(pLayOut, pPar-&gt;tpAlign);
  
     pango_cairo_update_layout(pCntxt, pLayOut);
     pango_cairo_show_layout(pCntxt, pLayOut);
  </code></pre>
  <p>The output of the left alignment</p>
  <pre><code>Sample 
  text 
  #1
  </code></pre>
  <p>The output of right alignment</p>
  <pre><code> Sample 
     text 
       #1 
  </code></pre>
  <p>How I can draw this in one line using Pango layout? I tried several other options in Pango layout but no luck</p>
  <p>I want my text like this</p>
  <pre><code>              Sample text #1//Using left align
  Sample text #1  //Using right align
              X,Y location here
  </code></pre>