String getRenderableText(TextRun tr) {
String txt = tr.getRawText();
- txt.replace("\t", tab2space(tr)).replace("\u000b", "\n");
+ txt = txt.replace("\t", tab2space(tr)).replace("\u000b", "\n");
switch (tr.getTextCap()) {
- case ALL: txt.toUpperCase(LocaleUtil.getUserLocale()); break;
- case SMALL: txt.toLowerCase(LocaleUtil.getUserLocale()); break;
+ case ALL: txt = txt.toUpperCase(LocaleUtil.getUserLocale()); break;
+ case SMALL: txt = txt.toLowerCase(LocaleUtil.getUserLocale()); break;
case NONE: break;
}
String getRenderableText(String txt) {
// TODO: finish support for tabs
- txt.replace("\t", " ");
+ txt = txt.replace("\t", " ");
switch (getTextCap()) {
case ALL:
}
Double srcFontSize = r.getFontSize();
- if (srcFontSize != getFontSize()) {
+ if (srcFontSize == null) {
+ if (getFontSize() != null) setFontSize(null);
+ } else if(!srcFontSize.equals(getFontSize())) {
setFontSize(srcFontSize);
}