Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 521441

Summary: GC.setFont broken for font-names which contain whitespaces
Product: [RT] RAP Reporter: Linuxhippy <linuxhippy>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.4   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/#/c/103741/
Whiteboard:

Description Linuxhippy CLA 2017-08-27 12:00:45 EDT
the fnuction _toCssFont does not properly handle font-names which contain white-spaces and therefore should be put under quotes.
Comment 1 Ivan Furnadjiev CLA 2017-10-16 08:06:54 EDT
Could you try this implementation of GC.js#_toCssFont:
-------
_toCssFont : function( fontArray ) {
    return rwt.html.Font.fromArray( fontArray ).toCss();
}
-------
Does it solve your issue?