163164165166167168169170171172173
* The value of <code>-1</code> unsets the Sz attribyte from the underlying xml bean */ public void setFontSize(double fontSize){ CTTextCharacterProperties rPr = getRpR(); if(fontSize == -1.0) { if(rPr.isSetSz()) rPr.unsetSz(); } else { rPr.setSz((int)(100*fontSize)); } }
161162163164165166167168169170171
* The value of <code>-1</code> unsets the Sz attribyte from the underlying xml bean */ public void setFontSize(double fontSize){ CTTextCharacterProperties rPr = getRPr(); if(fontSize == -1.0) { if(rPr.isSetSz()) rPr.unsetSz(); } else { if(fontSize < 1.0) { throw new IllegalArgumentException("Minimum font size is 1pt but was " + fontSize); }
9293949596979899100101102
* The value of <code>-1</code> unsets the Sz attribute from the underlying xml bean */ public void setFontSize(double fontSize){ CTTextCharacterProperties rPr = getRPr(); if(fontSize == -1.0) { if(rPr.isSetSz()) rPr.unsetSz(); } else { if(fontSize < 1.0) { throw new IllegalArgumentException("Minimum font size is 1pt but was " + fontSize); }
70717273747576777879
assertEquals(1800, pPr.getSz()); assertEquals(18.0, r.getFontSize()); pPr.setSz(2000); assertEquals(20.0, r.getFontSize()); pPr.unsetSz(); // Should never be assertEquals(-1.0, r.getFontSize()); } }
7273747576777879808182