added font and fontWeight parameters