< prev index next >
modules/javafx.graphics/src/main/java/com/sun/javafx/font/PrismFontFactory.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 155,178 ****
);
cacheLayoutSize = tempCacheLayoutSize[0];
}
private static String getJDKFontDir() {
! try {
! Class<?> c = Class.forName("sun.font.lookup.JDKFontLookup");
! Method m = c.getMethod("getJDKFontDir");
! jreFontDir = (String)m.invoke(c);
! return jreFontDir;
! } catch (Throwable t) {
! if (debugFonts) {
! System.err.println("Could not get JRE font dir via API");
! t.printStackTrace();
! }
! }
! return
! System.getProperty("java.home","") + File.separator +
! "lib" + File.separator + "fonts" + File.separator;
}
private static String getNativeFactoryName() {
if (isWindows) return DW_FACTORY;
if (isMacOSX || isIOS) return CT_FACTORY;
--- 155,166 ----
);
cacheLayoutSize = tempCacheLayoutSize[0];
}
private static String getJDKFontDir() {
! return System.getProperty("java.home","") + File.separator +
! "lib" + File.separator + "fonts";
}
private static String getNativeFactoryName() {
if (isWindows) return DW_FACTORY;
if (isMacOSX || isIOS) return CT_FACTORY;
< prev index next >