7147584: Changing to Nimbus/GTK in SwingSet2 on Solaris 10 Sparc causes malformed menus/layout
authorprr
Fri, 24 Feb 2012 09:37:01 -0800
changeset 11973 98134784d945
parent 11872 c51754cddc03
child 11974 6ae72fa75a6e
7147584: Changing to Nimbus/GTK in SwingSet2 on Solaris 10 Sparc causes malformed menus/layout Reviewed-by: igor, jgodinez
jdk/src/share/classes/sun/font/SunFontManager.java
--- 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().