Yes we already have added this. This is my point that it doesnt seem to work.
@ILikeCranberries
Please check that the font you are using for substitution is available in the environment using the code
var fonts = new InstalledFontCollection();
Console.WriteLine("installed fonts:");
foreach (FontFamily family in fonts.Families)
{
Console.WriteLine(family.Name);
}
I mean yes we added Arial via your font source suggestion (which is then also the font for substitution) and then it still failed.
@ILikeCranberries
Please provide the full code snippet (with font substitution), dockerfile and font files used in the docker image so that we can reproduce the problem. Is the document you are converting the same as the one attached earlier?
So in the end we were able to make it work by simply installing times new roman fonts also in the docker image. Font source definition was actually not needed. We also opted for this route as times is apparently the default fallback font chosen by Aspose in case a font is not available. As such this was the safest way. Font substitutions did not work because we would need to specify each font variant of times new roman (or any font family) in order to make it work. So installing the font family itself seems easier and more reliable.
The issues you have found earlier (filed as PDFNET-57695) have been fixed in Aspose.PDF for .NET 24.9.