Issue 93519 - wrong font rendering that causes huge PDF output
Summary: wrong font rendering that causes huge PDF output
Status: CONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.4.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://randomfoo.net/oscon/2002/lessi...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-05 14:36 UTC by ousia
Modified: 2013-08-07 15:20 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Displayed text from PDF at 3000% zoom in (47.50 KB, image/png)
2008-09-05 14:37 UTC, ousia
no flags Details
Display PDF export from PowerPoint + PDFCreator (Ghostscript) (47.50 KB, image/png)
2008-09-05 14:39 UTC, ousia
no flags Details
Impress display (135.96 KB, image/png)
2008-09-05 14:41 UTC, ousia
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ousia 2008-09-05 14:36:09 UTC
On slide 70 (and previous ones) from PowerPoint presentation the text contained
is displayed as vector, but it creates too many nodes in all letters and this
outputs a huge PDF file when exported.

I guess that, at least in Linux (and it might be the similar for Windows),
freetype will allow to display and export it as text, which will output a
smaller PDF document than exporting it as vector (as PowerPoint itself does).

Attachments show the issue.
Comment 1 ousia 2008-09-05 14:37:52 UTC
Created attachment 56261 [details]
Displayed text from PDF at 3000% zoom in
Comment 2 ousia 2008-09-05 14:39:53 UTC
Created attachment 56262 [details]
Display PDF export from PowerPoint + PDFCreator (Ghostscript)
Comment 3 ousia 2008-09-05 14:41:33 UTC
Created attachment 56263 [details]
Impress display
Comment 4 wolframgarten 2008-09-05 14:48:50 UTC
Reassigned. Please have a look at this one. Thanks.
Comment 5 hdu@apache.org 2008-09-05 16:33:50 UTC
@sj: please analyze the PPT import for that specific page. Does PPT really export it as polygon with line 
segments only? Probably not. I guess the problem is that the import does something like "convert to 
polygon" for it. And it seems to subdivide the bezier polygon into way too many linear segments?
=> low-tech solution2: use smarter subdivision in PPT import
=> medium-solution: use "convert to curve" instead of "convert to polygon"
=> best-solution: merge line segments back into bezier segments if possible

@aw: AFAIK with CWS aw033 being integrated it should be possible to get rid of the "convert to polygon" 
alltogether and replace their uses to the much better "convert to curve"?
Comment 6 ousia 2008-09-06 21:07:34 UTC
Sorry for asking a question that might be stupid, but I don't code.

Cannot be the conversion to polygon or curve be avoided by keeping text as text
at least in this concrete effect ('word wrap text in shape') and setting
internally different horizontal and vertical scaling of the font? (That would be
actually calculating scaling width and size to the text area.)

Thanks,


Pablo