--- a/jdk/src/java.desktop/share/classes/sun/font/CompositeFont.java Mon Nov 16 15:03:17 2015 +0400
+++ b/jdk/src/java.desktop/share/classes/sun/font/CompositeFont.java Mon Nov 16 16:07:46 2015 -0800
@@ -149,6 +149,25 @@
}
}
+ /*
+ * Build a composite from a set of individual slot fonts.
+ */
+ CompositeFont(PhysicalFont[] slotFonts) {
+
+ isStdComposite = false;
+ handle = new Font2DHandle(this);
+ fullName = slotFonts[0].fullName;
+ familyName = slotFonts[0].familyName;
+ style = slotFonts[0].style;
+
+ numMetricsSlots = 1; /* Only the physical Font */
+ numSlots = slotFonts.length;
+
+ components = new PhysicalFont[numSlots];
+ System.arraycopy(slotFonts, 0, components, 0, numSlots);
+ deferredInitialisation = new boolean[numSlots]; // all false.
+ }
+
/* This method is currently intended to be called only from
* FontManager.getCompositeFontUIResource(Font)
* It creates a new CompositeFont with the contents of the Physical