We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Font not loaded

Hello,



I need to print a document with a specific font (OTF file) but when I load the document into Aspose Words this font isn’t loaded.



If debug this code, the font isn’t listed



For Each FontDocument As Aspose.Words.Fonts.FontInfo In FontsDocument

Dim FontPresent As Boolean = False

For i As Integer = 0 To FontsSystem.Length - 1

If FontDocument.Name.Contains(FontsSystem(i).Name) Then

FontPresent = True

Exit For

End If

Next

’ If Not FontPresent Then

MsgBox(FontDocument.Name & " is missing !")

'End If

Next



How can I load this font to print correctly the document.



PS: From Word I don’t have this issue.

Hi Nicolas,

Thanks for your inquiry. Please note that Aspose.Words requires TrueType fonts when printing/rendering the document. You need to install fonts on the machine where you're printing the document. Please read following articles for your kind reference.

How Aspose.Words Uses True Type Fonts
How to Specify True Type Fonts Location
How to Receive Notification of Missing Fonts and Font Substitution during Rendering

Hi Tahir,



Thanks a lot.



I have converted the font OTF to TTF and now the font has been added to the system but when I print the document through Aspose.Words the logo in the header is half hidden, I don’t know why !



With MS-Word I dont have this issue, can you help me ?



The new Policy is in the atttachment

Hi Nicolas,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If we open the input document in MS Word, the logo in the header is half hidden. Please check the attached image for detail.