src/share/classes/com/sun/java/swing/plaf/gtk/PangoFonts.java
Print this page
@@ -27,11 +27,13 @@
import java.awt.*;
import java.awt.geom.AffineTransform;
import javax.swing.plaf.FontUIResource;
import java.util.StringTokenizer;
-import sun.font.FontManager;
+
+import sun.font.FontConfigManager;
+import sun.font.FontUtilities;
/**
* @author Shannon Hickey
* @author Leif Samuelsson
*/
@@ -191,17 +193,17 @@
if (size < 1) {
size = 1;
}
String fcFamilyLC = family.toLowerCase();
- if (FontManager.mapFcName(fcFamilyLC) != null) {
+ if (FontUtilities.mapFcName(fcFamilyLC) != null) {
/* family is a Fc/Pango logical font which we need to expand. */
- return FontManager.getFontConfigFUIR(fcFamilyLC, style, size);
+ return FontUtilities.getFontConfigFUIR(fcFamilyLC, style, size);
} else {
/* It's a physical font which we will create with a fallback */
Font font = new FontUIResource(family, style, size);
- return FontManager.getCompositeFontUIResource(font);
+ return FontUtilities.getCompositeFontUIResource(font);
}
}
/**
* Parses a String containing a pango font description and returns