@parmod.parmod Actually, by default, Aspose.Words uses system font source a default font source. but in your code you remove all font sources by setting empty string as font folder. Are you sure Times New Roman
is available in your Linux environment? Does WarningCallback
show any warnings about font substitution? You can use the following code to check when fonts are available in the specified font sources:
public static void printAvailableFonts(FontSettings fs)
{
for (FontSourceBase fsb : fs.getFontsSources())
{
System.out.println(FontSourceType.getName(fsb.getType()));
for (PhysicalFontInfo pfi : fsb.getAvailableFonts())
{
System.out.println(pfi.getFullFontName());
}
System.out.println("================================================");
}
}