For the ease of deployment, is it possible to set the fontsSource to the resource folder of the application jar?
For example:
includeFontsSources("**classpath:fonts**")
private fun includeFontsSources(fontFolder:String) {
val fontfolders = com.aspose.words.SystemFontSource.getSystemFontFolders()
log.info("fontfolders : ${fontfolders.toList()}")
val fontSetting = com.aspose.words.FontSettings.getDefaultInstance()
val newFontSource = com.aspose.words.FolderFontSource(fontFolder, true)
val newFontSources = fontSetting.fontsSources + newFontSource
com.aspose.words.FontSettings.getDefaultInstance().fontsSources = newFontSources
}