aliftype / xits

XITS - OpenType implementation of STIX fonts with math support
SIL Open Font License 1.1
351 stars 35 forks source link

Product signs cut off when converting to PDF #41

Closed def-gthill closed 8 years ago

def-gthill commented 9 years ago

I'm using XITS with Word 2013. If a document contains product signs (from the Large Operator menu in Equation tools), the product signs are mangled when the document is converted to PDF. For example, these equations in Word: productfailword are rendered like this in the PDF: productfailpdf (The first equation is a numbered equation in a table, while the second is a bare equation on its own line. The equations are in 12-point font, though changing the font size doesn't seem to affect the results.)

This doesn't happen if I use Cambria Math, so it appears to be a XITS issue, not a Word issue. Fortunately, summation signs seem to work fine.

def-gthill commented 9 years ago

Integral signs are also cut off: integralfail Again, they work fine in Cambria Math.

khaledhosny commented 9 years ago

I can’t reproduce this with Word 2010, can you send me a sample DOCX file and the generated PDF? Also, how do you generate the PDF, using Word’s built-in feature or a third party tool?

def-gthill commented 9 years ago

I'm generating this using Word's built-in feature. I actually managed to find a workaround: I use the print-to-XPS feature, then convert the XPS to a PDF using a third-party tool.

How do I send you a docx and pdf? The comment system only allows attaching images.

khaledhosny commented 9 years ago

Please email the files to me.

khaledhosny commented 8 years ago

Is this still an issue?

pawaa commented 8 years ago

I'm using Microsoft Word 2016 with XITS 1.108 and I'm havig the same problems with the product and integral signs. I'm algo also using the export to pdf feature in Word.

khaledhosny commented 8 years ago

I think Word’s built-in PDF export feature is just buggy. It does not support embedding CFF fonts (like XITS) and instead embeds the glyphs as raster images, and whatever code doing that rasterisation seems to be buggy. As such I suggest using any of the other available PDF painters that seem to be doing a better job.

pawaa commented 8 years ago

I belive it is the built-in PDF export feature of Word. I printed the document to PDF instead of exporting it and everything looked good.

khaledhosny commented 8 years ago

OK, closing then. Thanks.

Dom303 commented 8 years ago

Word 2013-2016 does not support font embedding using Open Type Fonts (.otf), it only supports it using TrueType Fonts (.ttf). To fix the problem, all you have to do is follow this simple steps:

  1. Convert the font to .ttf using a converter. I used this website https://onlinefontconverter.com/.
  2. Install the converted files. You will be prompted that the font is already install, choose "yes" to replace the old installation.
  3. Enjoy :)
  4. To help you, I attached a .zip file that contains the XTIS font in .ttf format. XITS-TTF.zip