equal
deleted
inserted
replaced
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 |
214 // In some italic cases the standard Mac cascade list is missing Arabic. |
215 // to happen to this JRE font in case the intended glyph is missing in |
215 listOfString.add("GeezaPro"); |
216 // fonts provided in the CoreText provided cascaded list |
|
217 listOfString.add("Lucida Sans Regular"); |
|
218 FontManager fm = FontManagerFactory.getInstance(); |
216 FontManager fm = FontManagerFactory.getInstance(); |
219 int numFonts = 1 + listOfString.size(); |
217 int numFonts = 1 + listOfString.size(); |
220 PhysicalFont[] fonts = new PhysicalFont[numFonts]; |
218 PhysicalFont[] fonts = new PhysicalFont[numFonts]; |
221 fonts[0] = this; |
219 fonts[0] = this; |
222 int idx = 1; |
220 int idx = 1; |