jdk/src/java.desktop/macosx/classes/sun/font/CFont.java
changeset 43824 a77cc25713e9
parent 40723 27ae46468527
child 44534 a076dffbc2c1
equal deleted inserted replaced
43823:bf04b9310757 43824:a77cc25713e9
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   209 
   209 
   210     private CompositeFont createCompositeFont() {
   210     private CompositeFont createCompositeFont() {
   211         ArrayList<String> listOfString = new ArrayList<String>();
   211         ArrayList<String> listOfString = new ArrayList<String>();
   212         getCascadeList(nativeFontPtr, listOfString);
   212         getCascadeList(nativeFontPtr, listOfString);
   213 
   213 
       
   214         // add JRE "Lucida Sans Regular" to the cascade list to enable fallback
       
   215         // to happen to this JRE font in case the intended glyph is missing in
       
   216         // fonts provided in the CoreText provided cascaded list
       
   217         listOfString.add("Lucida Sans Regular");
   214         FontManager fm = FontManagerFactory.getInstance();
   218         FontManager fm = FontManagerFactory.getInstance();
   215         int numFonts = 1 + listOfString.size();
   219         int numFonts = 1 + listOfString.size();
   216         PhysicalFont[] fonts = new PhysicalFont[numFonts];
   220         PhysicalFont[] fonts = new PhysicalFont[numFonts];
   217         fonts[0] = this;
   221         fonts[0] = this;
   218         int idx = 1;
   222         int idx = 1;