[Bug 31662] New: Office 2010 font embedding when exporting to PDF
http://bugs.winehq.org/show_bug.cgi?id=31662 Bug #: 31662 Summary: Office 2010 font embedding when exporting to PDF Product: Wine Version: 1.5.6 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 AssignedTo: wine-bugs(a)winehq.org ReportedBy: dan.raviv(a)gmail.com Classification: Unclassified Created attachment 41630 --> http://bugs.winehq.org/attachment.cgi?id=41630 docx and Office 2010 exported pdfs When exporting office files to PDF using Office 2010 on Wine, the fonts don't get embedded in the resulting PDF. This is in contrast to the behavior on Windows where the fonts are embedded correctly. After replacing t2embed.dll with a version from windows, the embedded font entry is created in the PDF, *but* is effectively empty: 5 0 obj <</Type/Font/Subtype/TrueType/Name/F1/BaseFont/ABCDEE+Calibri/Encoding/WinAnsiEncoding/FontDescriptor 6 0 R/FirstChar 32/LastChar 55/Widths 17 0 R>> endobj 6 0 obj <</Type/FontDescriptor/FontName/ABCDEE+Calibri/Flags 32/ItalicAngle 0/Ascent 750/Descent -250/CapHeight 750/AvgWidth 521/MaxWidth 1743/FontWeight 400/XHeight 250/StemV 52/FontBBox[ -503 -250 1240 750] /FontFile2 18 0 R>> 18 0 obj <<>> endobj Note the empty object 18. Suspecting the issue is in wineps.drv. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 dan.raviv(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |printing -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|printing | Component|gdi32 |-unknown --- Comment #1 from Nikolay Sivov <bunglehead(a)gmail.com> 2012-09-10 08:32:12 CDT --- If it's fixed with native t2embed.dll let's assume it's the one to blame. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #2 from dan.raviv(a)gmail.com 2012-09-10 08:59:52 CDT --- (In reply to comment #1)
If it's fixed with native t2embed.dll let's assume it's the one to blame.
From the research I've made so far it looks like t2embed is only queried for the embedding type and whether embedding is allowed, and doesn't actually perform the embedding itself.
Since wine's t2embed always returns false, the embedding didn't happen. The native t2embed returns that embedding is enabled, but doesn't do the actual embedding, though I still don't know what does the embedding. I assume the postscript driver. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #3 from Nikolay Sivov <bunglehead(a)gmail.com> 2012-09-10 10:59:05 CDT --- (In reply to comment #2)
(In reply to comment #1)
If it's fixed with native t2embed.dll let's assume it's the one to blame.
From the research I've made so far it looks like t2embed is only queried for the embedding type and whether embedding is allowed, and doesn't actually perform the embedding itself.
Since wine's t2embed always returns false, the embedding didn't happen. The native t2embed returns that embedding is enabled, but doesn't do the actual embedding, though I still don't know what does the embedding. I assume the postscript driver.
I see, so let's keep this report open for t2embed.dll problem. Next problem with native t2embed should be tracked in separate report, probably linked to this one. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #4 from dan.raviv(a)gmail.com 2012-09-11 03:50:01 CDT --- A few possibly related directions: 1) When the docx is opened for reading (before exporting to PDF), getting the warnings: fixme:uniscribe:ScriptShapeOpenType Ranges not supported yet fixme:uniscribe:GSUB_apply_lookup We do not handle SubType 7 fixme:uniscribe:GSUB_apply_lookup We do not handle SubType 7 ... Tried substituting usp10.dll with native version, but still getting the uniscribe warnings, probably from msxml*.dll. Tried substituting msxml*.dll with native versions, but encountered error about msxml3.DllGetClassObject not found by msxml6, even though both native files are in ".wine/drive_c/windows/system32". So I didn't really finish checking this direction. 2) wine's postscript driver's ppd (/usr/local/share/wine/generic.ppd) has a "TTRasterizer: None", which means it doesn't support rasterizing TrueType fonts. Maybe also effects whether or not the font is embedded? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #5 from dan.raviv(a)gmail.com 2012-09-11 03:51:59 CDT --- Thank you Nikolay! I prefer leaving this bug open for the overall logical issue, and open separate bugs for specific technical issues causing it. (In reply to comment #3)
(In reply to comment #2)
(In reply to comment #1)
If it's fixed with native t2embed.dll let's assume it's the one to blame.
From the research I've made so far it looks like t2embed is only queried for the embedding type and whether embedding is allowed, and doesn't actually perform the embedding itself.
Since wine's t2embed always returns false, the embedding didn't happen. The native t2embed returns that embedding is enabled, but doesn't do the actual embedding, though I still don't know what does the embedding. I assume the postscript driver.
I see, so let's keep this report open for t2embed.dll problem. Next problem with native t2embed should be tracked in separate report, probably linked to this one.
-- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 dan.raviv(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |printing -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #6 from dan.raviv(a)gmail.com 2012-09-12 11:06:55 CDT --- Research complete - In addition to the missing functionality in t2embed.dll, the fontsub.dll is required. Copying it from windows resolves the issue. So the two technical issues which cause this bug are the two dlls, one with missing functionality and one completely missing. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31662 dries(a)kimpe.be changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dries(a)kimpe.be -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned? --- Comment #7 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- (In reply to dan.raviv from comment #6)
missing functionality in t2embed.dll
Is this still an issue in Wine 1.7.45 or later?
the fontsub.dll is required.
There should be a new bug report for that, though there is a stub available. http://source.winehq.org/source/dlls/fontsub/ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Rosanne DiMesio <dimesio(a)earthlink.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ms22170(a)outlook.com --- Comment #8 from Rosanne DiMesio <dimesio(a)earthlink.net> --- *** Bug 40377 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|Abandoned? | -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #9 from Nikolay Sivov <bunglehead(a)gmail.com> --- Created attachment 54089 --> https://bugs.winehq.org/attachment.cgi?id=54089 patch Could you try if this patch is enough to get same results as with native t2embed.dll? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #10 from dan.raviv(a)gmail.com --- Hi Nikolay! Unfortunately, I'm no longer working on the related project, and don't currently have a similar setup to test this. Cheers, Dan -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #11 from Rosanne DiMesio <dimesio(a)earthlink.net> --- (In reply to Nikolay Sivov from comment #9)
Could you try if this patch is enough to get same results as with native t2embed.dll?
No. No embedded font entry is created in the PDF. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|printing | --- Comment #12 from Nikolay Sivov <bunglehead(a)gmail.com> --- A better version of this patch was committed - http://source.winehq.org/git/wine.git/?a=commit;h=12fbfe838c2e6f41ead7445dec.... Still needs more work. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #13 from Nikolay Sivov <bunglehead(a)gmail.com> --- And confirming. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #54089|0 |1 is obsolete| | -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #14 from Nikolay Sivov <bunglehead(a)gmail.com> --- Created attachment 54121 --> https://bugs.winehq.org/attachment.cgi?id=54121 TTIsEmbeddingEnabled patch Could you try this diff on top of current git? Seems to work for me. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #15 from Rosanne DiMesio <dimesio(a)earthlink.net> --- Yes, it works for text, even when the font is Cambria Math. There is still a problem with fonts from equations inserted using the equation tool, but that's buggy in Windows, too, though in a different way than in Wine. That should probably be a separate bug. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 --- Comment #16 from Nikolay Sivov <bunglehead(a)gmail.com> --- This should work now with http://source.winehq.org/git/wine.git/?a=commit;h=0ea8c1d62e4993567e451ddcc2.... Please retest and open another one for remaining problems. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Rosanne DiMesio <dimesio(a)earthlink.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #17 from Rosanne DiMesio <dimesio(a)earthlink.net> --- Fixed in git. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0ea8c1d62e4993567e451ddcc25 | |f4f0958e17266 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #18 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.9.8. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Michael Stefaniuc <mstefani(a)redhat.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani(a)redhat.com Target Milestone|--- |1.8.x -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31662 Michael Stefaniuc <mstefani(a)redhat.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |--- --- Comment #19 from Michael Stefaniuc <mstefani(a)redhat.com> --- Removing 1.8.x milestone from bugs included in 1.8.3. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org