https://bugs.winehq.org/show_bug.cgi?id=40377
Bug ID: 40377 Summary: Word 2010: Cannot embed TTC fonts when exporting to PDF Product: Wine Version: 1.8 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: ms22170@outlook.com Distribution: ---
Created attachment 54081 --> https://bugs.winehq.org/attachment.cgi?id=54081 an example of document with equation
I installed Microsoft Office Professional Plus 2010 in a clean 32-bit wineprefix. After copying fontsub.dll and t2embed.dll from Windows XP and setting them to native, build in override, I can embed Fonts when exporting to PDF. However, When a font is in a TrueType fonts collection(*.ttc), it cannot be embed and become bitmaps in PDF, such as SimSun fonts. Moreover, when I enter a math equation in Word. I can't see the equations in the exported PDF. The font of the equation is Cambria Math. So I tried to substitute the TTC font CAMBRIA.TTC with Cambria.ttf and CambriaMath.ttf which was unpacked from it, and try it again. After that, the interface of Microsoft Word become quite strange and it cannot work normally. So what I want to know is whether there is a way to export PDF with TTC fonts in Microsoft Word 2010 with wine.
https://bugs.winehq.org/show_bug.cgi?id=40377
--- Comment #1 from hl w ms22170@outlook.com --- Created attachment 54082 --> https://bugs.winehq.org/attachment.cgi?id=54082 add the exported pdf
https://bugs.winehq.org/show_bug.cgi?id=40377
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- What you're describing does not sound very relevant to Wine. Did you check that it's possible to embed this font with Word on Windows? It's possible font itself has a hint to disallow embedding, and t2embed respects that. Regarding expanding collections and manipulating fonts shipped with Office, you're on your own and should check if this works as you expect on Windows first.
https://bugs.winehq.org/show_bug.cgi?id=40377
--- Comment #3 from hl w ms22170@outlook.com --- Created attachment 54083 --> https://bugs.winehq.org/attachment.cgi?id=54083 Screenshots
I export it in Windows and Both SimSun and Cambria Math has been embed in PDF. Both of them are TTC files in my Windows system. In Ubuntu I can copy SimSun.ttf to $WINEPREFIX/drive_c/windows/fonts, however, I cannot use this method with Cambria Math because there has been a CAMBRIA.TTC in this directory. It seems that Microsoft Office has installed it and it cannot be changed. Once I remove CAMBRIA.TTC, Microsoft Word can't work correctly.
https://bugs.winehq.org/show_bug.cgi?id=40377
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #4 from Rosanne DiMesio dimesio@earthlink.net --- (In reply to hl w from comment #0)
After copying fontsub.dll and t2embed.dll from Windows XP and setting them to native, build in override, I can embed Fonts when exporting to PDF. However, When a font is in a TrueType fonts collection(*.ttc), it cannot be embed and become bitmaps in PDF, such as SimSun fonts.
Problems with native dlls are not normally considered valid Wine bugs. The fact that you need native t2embed and fontsub to embed fonts at all are valid bugs, but those have already been reported (bug 31662 and bug 40081).
Moreover, when I enter a math equation in Word. I can't see the equations in the exported PDF.
That's also probably related to bug 31662; console output when exporting to PDF shows:
fixme:t2embed:TTGetEmbeddingType (0x501ec 0x3321a8) stub
I'm not sure whether there should be a separate bug for that.
*** This bug has been marked as a duplicate of bug 31662 ***
https://bugs.winehq.org/show_bug.cgi?id=40377
--- Comment #5 from hl w ms22170@outlook.com --- I don't think it duplicated.
With the method mentioned in Bug 31662 (replacing fontsub.dll and t2embed.dll), I can successfully embed fonts which are stored as TTF format when exporting to PDF. You can see it in the PDF attachment.
My question is, however, I cannot embed fonts which are stored as TTC format. Some fonts can be replaced by TTF fonts such as SimSun, and it works.But some of them cannot be replaced such as Cambria Math, or Microsoft Word won't work properly.
https://bugs.winehq.org/show_bug.cgi?id=40377
--- Comment #6 from Rosanne DiMesio dimesio@earthlink.net --- (In reply to hl w from comment #0)
Moreover, when I enter a math equation in Word. I can't see the equations in the exported PDF.
After a little more testing, I think that is a separate bug. When I save your sample docx file as a PDF in Word 2007 (wine-1.9.6, no native dlls other than riched20), the fonts aren't embedded, but the equation IS visible in the PDF.
So something else is going wrong with the way Word 2010 exports PDFs, but I'm not sure it's entirely a Wine bug. I also tested exporting a document with the "Binomial Theorem" built-in equation in Word 2010 running in Windows XP. In the resulting PDF, the parentheses and sigma symbol were missing, and while the letters and numbers were all there, they had been converted from Cambria Math to Calibri, and that was the only font that was embedded.
Googling, I also found http://digitalcommons.unl.edu/cgi/viewcontent.cgi?article=1101&context=i..., which indicates Word 2010 not being able to embed some fonts in PDFs is a known issue.
https://bugs.winehq.org/show_bug.cgi?id=40377
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com --- Closing duplicate bugs.