Bug 168816 Set text alignment to inline dynamic text in cell doesn't display properly[0003]
Set text alignment to inline items in cell doesn't display properly[0003] Build number: 2.2.0.v20061220 Steps to reproduce: 1.new a report 2.insert a 1r*1c grid 3.insert two dynamic text items in the cell and input some text in it 4.set the two dynamic text items to display "inline" and set the grid text alignment to center 5.preview in html,web viewer and PDF Expected result: the two items should be in the center Actual result: The two items are in the center in html and web viewer While in PDF,they're not. Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTextLM.java
IArea builtArea = buildArea(getReverseText(originalText), content, chunk.getFontInfo(), d);
				PDFTextLM.this.addTextLine(builtArea);
				PDFTextLM.this.newLine();
				vestigeIndex = (null == currentWord) ? -1 : currentWord.getStart();
				vestigeLength = (null == currentWord) ? 0 : currentWord.getLength();
				return;
			}
		}
		
		/**
		 * build areas by specified properties for text content. the return area
		 * should be an container area which contains a text chunk or only a text
		 * chunk.
		 * <p>
		 * <ul>
		 * <li>For inline text, the return value should be a container area. The
		 * container area inherit border and margin from text content. The position
		 * of the container area in its container is decided by the margin value of
		 * text content.
		 * <li>For block text, the return value should be a text chunk. The
		 * position of text chunk in its container is decided by the padding value
		 * of text content.
		 * </ul>
		 * 
		 * @param content				the TextContent which the TextArea shares the style with.
		 * @param startOffset			the start offset of the text in the TextArea relative to content.
		 * @param endOffset      		the end offset of the text in the TextArea relative to content.
		 * @param fi					the FontInfo of the text in the TextArea.
		 *   
		 * @return						the built TextArea.