* the index "x"
* </ul>
*/
public void setTextFontSize(String size) {
int newsize, tmp;
StyleSheet css = doc.getStyleSheet();
try {
if (size.equals("xx-small")) {
newsize = (int)css.getPointSize(0);
} else if (size.equals("x-small")) {
newsize = (int)css.getPointSize(1);
} else if (size.equals("small")) {
newsize = (int)css.getPointSize(2);
} else if (size.equals("medium")) {
newsize = (int)css.getPointSize(3);
} else if (size.equals("large")) {
newsize = (int)css.getPointSize(4);
} else if (size.equals("x-large")) {
newsize = (int)css.getPointSize(5);
} else if (size.equals("xx-large")) {
newsize = (int)css.getPointSize(6);
} else if (size.equals("bigger")) {
newsize = (int)css.getPointSize("+1");
} else if (size.equals("smaller")) {
newsize = (int)css.getPointSize("-1");
} else if (size.endsWith("pt")) {
String sz = size.substring(0, size.length() - 2);
newsize = Integer.parseInt(sz);
} else {
newsize = (int) css.getPointSize(size);
}
} catch (NumberFormatException nfe) {
return;
}
if (newsize == 0) {