7147584: Changing to Nimbus/GTK in SwingSet2 on Solaris 10 Sparc causes malformed menus/layout
Reviewed-by: igor, jgodinez
--- a/jdk/src/share/classes/sun/font/SunFontManager.java Wed Jul 05 18:03:20 2017 +0200
+++ b/jdk/src/share/classes/sun/font/SunFontManager.java Fri Feb 24 09:37:01 2012 -0800
@@ -2619,10 +2619,6 @@
physicalFonts.remove(oldFont.fullName);
fullNameToFont.remove(oldFont.fullName.toLowerCase(Locale.ENGLISH));
FontFamily.remove(oldFont);
- if (oldFont instanceof FileFont) {
- ((FileFont)oldFont).deregisterFontAndClearStrikeCache();
- }
-
if (localeFullNamesToFont != null) {
Map.Entry[] mapEntries =
(Map.Entry[])localeFullNamesToFont.entrySet().