< prev index next >

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

Print this page

        

*** 38,51 **** private final PGFont font; WCFontCustomPlatformDataImpl(InputStream inputStream) throws IOException { FontFactory factory = GraphicsPipeline.getPipeline().getFontFactory(); ! font = factory.loadEmbeddedFont(null, inputStream, 10, false); ! if (font == null) { throw new IOException("Error loading font"); } } @Override protected WCFont createFont(int size, boolean bold, boolean italic) { --- 38,53 ---- private final PGFont font; WCFontCustomPlatformDataImpl(InputStream inputStream) throws IOException { FontFactory factory = GraphicsPipeline.getPipeline().getFontFactory(); ! 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 >