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

Free Support Forum - aspose.com

Futura font not used in HTML rendering even if embedded in Word document

Hi,

We use Aspose.Word to convert Word documents to fixed layout HTML.

To achieve a high fidelity rendering, we embed fonts in the Word documents using Word’s option for embedding fonts, and this usually works like a treat.

But when the Word document uses the font Futura, even if that font is embedded in the document, Aspose.Word falls back to using the Calibri font.

Interestingly, if we install the font on the machine doing the conversion, then the produced HTML uses the font Futura as expected.

Is this behaviour expected? Is there something special about that font which causes this behaviour?

Please find attached a sample document with fonts embedded:
Futura-embedded.docx (1.8 MB)

Thanks in advance.

@njlgad I have checked your document and it looks like Futura fonts is improperly embedded into your document. If you unzip your document and check fontTable.xml you will notice that Calibri and Times New Roman are embedded, but Futura is not.

	<w:font w:name="Times New Roman">
		<w:panose1 w:val="02020603050405020304"/>
		<w:charset w:val="00"/>
		<w:family w:val="roman"/>
		<w:pitch w:val="variable"/>
		<w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/>
		<w:embedRegular r:id="rId2" w:fontKey="{34F60C58-5B2B-2B46-8328-7649F86C56CA}"/>
	</w:font>
	<w:font w:name="Futura Medium">
		<w:altName w:val="FUTURA MEDIUM"/>
		<w:panose1 w:val="020B0602020204020303"/>
		<w:charset w:val="B1"/>
		<w:family w:val="swiss"/>
		<w:pitch w:val="variable"/>
		<w:sig w:usb0="80000867" w:usb1="00000000" w:usb2="00000000" w:usb3="00000000" w:csb0="000001FB" w:csb1="00000000"/>
	</w:font>

As you can see Times New Roman has embedRegular element, but Futura does not. That is why Aspose.Words does not read the Futura as font that is embedded into the document.

@alexey.noskov, thanks for the explanation.

1 Like