i am using the below code
` FontSettings fontSettings = new FontSettings();
fontSettings.setDefaultFontName(“Arial”);
fontSettings.setFontsFolder(MyDir, false);
doc.setFontSettings(fontSettings);
doc.setWarningCallback(new HandleDocumentWarnings()); ’
I am convert the file from .docx to .pdf format but in this conversion, if any font format is not available or not supported by aspose then it search the fonts in the font folder
but if i use the above code then it always search the all fonts in set font folder only if not found then print it from best possible match fonts from Folder only.
it give warning like
Font substitution : Font ‘Calibri’ has not been found. Using ‘Xephyr Leftalic’ font instead. Reason: closest match according to font info from the document.
Font substitution : Font ‘Algerian’ has not been found. Using ‘Xephyr Leftalic’ font instead. Reason: closest match according to font info from the document.
Font substitution : Font ‘Bauhaus 93’ has not been found. Using ‘Xephyr Leftalic’ font instead. Reason: closest match according to font info from the document.
Font substitution : Font ‘Verdana’ has not been found. Using ‘Xephyr Leftalic’ font instead. Reason: closest match according to font info from the document.
Font substitution : Font ‘Times New Roman’ has not been found. Using ‘Xephyr Leftalic’ font instead. Reason: closest match according to font info from the document.
Font substitution : Font ‘Arial’ has not been found. Using ‘Xephyr Leftalic’ font instead. Reason: closest match according to font info from the document.
on more question, what is use of true/ false in fontSettings.setFontsFolder(MyDir, false);