I recommend replacing the "font-size" and "font-name" code with the new `hasFontPropertiesWithClass` and `getFontWithClass` methods in NUISettings:

````objc
    if ([NUISettings hasFontPropertiesWithClass:className]) {
        textView.font = [NUISettings getFontWithClass:className baseFont:textView.font];
    }
````