Is it possible to use FontSourceBase or StreamFontSource to load fonts from internet (google fonts)? Problem is, I don’t really understand how FontSourceBase works !
My idea is to check font with System or FolderFontSource first, and if not available, check in google fonts.
Google fonts API provides an endpoint who return the list of all availables font with the link to ttf files. So, I can probably easily use it to implement method getAvailableFonts() but there is still some unknow :
- For StreamFontSource, what must be the content of stream returned by https://reference.aspose.com/words/java/com.aspose.words/streamfontsource/#openFontDataStream?
- getAvailableFonts return a list of PhysicalFontInfo. In this class there is method getFilePath but, what should it return?