public void setFontBold(boolean param) throws TextException {
try {
float weight = param ? FontWeight.BOLD : (float) 100.0;
getXPropertySet().setPropertyValue("CharWeight", new Float(weight));
} catch (Exception excep) {
TextException textException = new TextException(excep.getMessage());
textException.initCause(excep);
throw textException;
}
}