Bug 196419 Long string word in element will lost head and tail when preview as PDF[0004]
Description: Long string word in element will lost head and tail[0004] Step: 1.Input "labellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabellabel" in label or text. 2.Preview as PDF Actual result: It only privew the center of content on label and text. Please see the attached image
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTextLM.java
{
					str = null;
					break;
				}
				str = currentWord.getValue();
				prevAreaWidth = areaWidth;
				areaWidth += (int)(chunk.getFontInfo().getWordWidth(
						chunk.getText().substring(currentPos, currentPos+str.length()))
						* PDFConstants.LAYOUT_TO_PDF_RATIO)
						+ letterSpacing * str.length() + wordSpacing;
					
				
				if (isAtLast(chunk.getOffset() + currentPos + str.length())) 
				{
					rightSpaceHolder = rightMargin + rightBorder + rightPadding;
					freeSpace -= rightSpaceHolder;
				}
			}
			
			
			int length = chunk.getText().length();
			if (currentPos == length )
			{
				Dimension d = new Dimension( areaWidth, 
						(int)(chunk.getFontInfo().getWordHeight() * PDFConstants.LAYOUT_TO_PDF_RATIO ));
					
				String originalText = chunk.getText().substring(areaStartPos - chunk.getOffset(), 
						chunk.getText().length());
				
				IArea builtArea = buildArea(getReverseText(originalText), content,