Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.
Wed Oct 16, 2024 3:01 pm
I am using Python for coding. My code is fine as it can process calibri and Arial Unicode MS.
I have tried to run in Azure Virtual Machine and PythonAnywhere, but both cannot generate the text.
Could I know if this font family is supported by the library?
-
francis_sun
-
- Posts: 1
- Joined: Wed Oct 16, 2024 2:52 pm
Thu Oct 17, 2024 2:51 am
Hello,
Thanks for your inquiry.
Yes, when using our product for conversion, it needs to read the corresponding fonts from the environment. Our Spire.XLS itself does not include any font. Thus please make sure that you have these fonts in your running system environment and that your program has access to them. You can refer to the following code to customize the font directory. If you have any further questions, please feel free to provide feedback.
- Code: Select all
workbook = Workbook()
// Store Calibri and Arial in the userFont directory
PATH_TO_FONT = "/yourPath/userFont"
workbook.CustomFontFileDirectory = [PATH_TO_FONT]
Sincerely,
Amin
E-iceblue support team
-
Amin.Gan
-
- Posts: 285
- Joined: Mon Jul 15, 2024 5:40 am