added font style handling logic