Aspose.Pdf.Text.FontRepository.FindFont 'Font ... was not found'


#1

FontRepository.FindFont() fails when try to find “Seria-BoldItalicCaps”
This font was installed to default fonts in Windows\Fonts,
and set FolderFontSource do not help too.
FolderFontSource fs = new FolderFontSource(“C:\Windows\Fonts”);
FontRepository.Sources.Add(fs);

Please, advise the solution.


#2

@VorobiovKostia

Thank you for contacting support.

You may try using FontRepository.OpenFont method while passing the path of font file as under:

textstate.Font = FontRepository.OpenFont(dataDir + "Seria-BoldItalicCaps.ttf");

If you still face any issue then please share your font file as ZIP so that we may investigate further.