@DRzeng88,
Please use the following code snippet:
Presentation pres = new Presentation("indentedFontHeight.pptx");
ISlide slide = pres.getSlides().get_Item(0);
IAutoShape ashp = (IAutoShape)slide.getShapes().get_Item(0);
for (IParagraph paragraph : ashp.getTextFrame().getParagraphs())
{
for(IPortion port : paragraph.getPortions())
{
System.out.println("Portion: "+ port.getText()+" has font height: "+ port.getPortionFormat().getFontHeight());
IPortionFormatEffectiveData effectiveportionformat=port.getPortionFormat().getEffective();
System.out.println("Portion: "+ port.getText()+" has font height: "+ effectiveportionformat.getFontHeight());
}
}
Output:
Portion: Try to get the final font that has been adjusted using the overflow indentation has font height: 36.0
Portion: Try to get the final font that has been adjusted using the overflow indentation has font height: 18.0
Documents: Shape Effective Properties
API Reference: IPortionFormatEffectiveData interface