Small refactoring of the UI compiler code.
Added the UIFont attribute.