< prev index next >

modules/web/src/main/java/com/sun/javafx/webkit/prism/WCFontCustomPlatformDataImpl.java

Print this page

        

@@ -38,14 +38,16 @@
     private final PGFont font;
 
 
     WCFontCustomPlatformDataImpl(InputStream inputStream) throws IOException {
         FontFactory factory = GraphicsPipeline.getPipeline().getFontFactory();
-        font = factory.loadEmbeddedFont(null, inputStream, 10, false);
-        if (font == null) {
+        PGFont[] fa = factory.loadEmbeddedFont(null, inputStream,
+                                               10, false, false);
+        if (fa == null) {
             throw new IOException("Error loading font");
         }
+        font = fa[0];
     }
 
 
     @Override
     protected WCFont createFont(int size, boolean bold, boolean italic) {
< prev index next >