Default font location evaluation for Aspose.Cells in Java

Hi All,

I am using aspose veriosn 7.5.3, I want to know two things

1/ What is the default location of font directory that aspose looks into in Windows vista or JDK 1.6

2/ What is the default font that aspose considers if no font setting has been specified.

Regards,

Abhinav

Hi,

Thanks for your posting and using Aspose.Cells for Java.

We will use following code to get font path by default :


Class clazz =
Class.forName(“sun.font.FontManager”);
Method
mth = clazz.getMethod(“getFontPath”,
boolean.class);
String fontFilePath =
(String)mth.invoke(null, new
Object[]{Boolean.TRUE});
if(fontFilePath !=
null)

{
for(String path :
fontFilePath.split(java.io.File.pathSeparator))

{

addFontDir(path);

}
}

If client set other font
directory, then font directory will be added to search list.