Setting Default Font


#1

There appears to be a setDefaultFont method for Slides document loading options. Is there such a method for the more general class of LoadOptions? We’re having significant font rendering issues, setting a reasonable default would be helpful. If there is something that can be changed in the environment instead that would also be a good option. Please advise what information is necessary to answer this question.


#2

@jgorr,

Thanks for taking interest in GroupDocs.Conversion and posting your concerns. Can you please mention version and platform of the API (Java or .NET) you are evaluating?


#3

17.04 for Java.


#4

@jgorr,

Do you mean 17.3.0? Because currently, it is the latest version of the API.

We have logged your scenario as an investigation in our internal issue tracking system. As we have any update on it, you’ll be notified.


#5

@jgorr,

Isn’t following code working out for you:

SlidesLoadOptions loadOptions = new SlidesLoadOptions(); 
loadOptions.setDefaultFont("Verdana"); 

This code is still supported in 17.3.0 version of the API. Please see if you can set a default font and perform documents conversion without any issue.


#6

I want to load a default font for all document types, not just slides.


#7

@jgorr,

We’re investigating this issue. As we have any update, we’ll surely notify you.


#8

I want this feature in .NET library. I have a scenario where a user-uploaded file might be using a non-standard font. Currently the output of PDF conversion is horrific because of the fallback font. I wish to be able to control the default font for fallback.

Thanks,
Zeeshan


#9

@zeeshan1,

We created a new thread for your query. And your issue shall be addressed there.


#10

@jgorr,

Along with Slides, you can now load default font for Word and Cell documents as follow:

CellsLoadOptions loadOptions = new CellsLoadOptions();
loadOptions.setDefaultFont("Verdana");

and

WordsLoadOptions loadOptions = new WordsLoadOptions();
loadOptions.setDefaultFont("Verdana");

Please integrate 18.6.1 release of the API in your project and share your feedback.