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

Bug 351224

Summary: FontRegistry caches based on potentially incomplete font spec
Product: z_Archived Reporter: Ivan Motsch <ivan.motsch>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ivan Motsch CLA 2011-07-05 13:04:58 EDT
The class FontRegistry is called by ISwtEnvironment.getFont and 
caches the font based on FontSpec.toPattern().
If the font spec is just a partial spec then the used cache key is ambiguous.
Comment 1 Ivan Motsch CLA 2011-07-05 13:17:31 EDT
Fixed by completing newName, newStyle, newSize with template font values if null. The cache key is the concatenation of the three non-null values.
Comment 2 Matthias Zimmermann CLA 2012-07-09 06:50:08 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)