Font Substitution Questions/Issues

Hi Ian,

Further to my last post, If you want to get workaround for this issue, you can use FontSettings.setFontSubstitutes instead of FontSettings.addFontSubstitutes as shown in following code example.

String[] fontnames = new String[] { "Cambria", "Arial" };
java.util.ArrayList fontSubstitutes = new java.util.ArrayList();
String[] existingSubstitutes = FontSettings.getFontSubstitutes("Courier");
if (existingSubstitutes != null)
    fontSubstitutes.addAll(Arrays.asList(existingSubstitutes));
fontSubstitutes.addAll(Arrays.asList(fontnames));
String[] fonts = new String[fontSubstitutes.size()];
fonts = fontSubstitutes.toArray(fonts);
FontSettings.setFontSubstitutes("Courier", fonts);
String[] fs = FontSettings.getFontSubstitutes("Courier");
System.out.println(fs.length);
System.out.println("Font Substitutes for Courier: " + fs[0]);

The issues you have found earlier (filed as WORDSNET-10754) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as WORDSNET-10617) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.