Giuseppe Castagno wrote:
Hi Phillip,
Philipp Lohmann wrote:
Giuseppe Castagno wrote:
Hi all,
in the Italian OOo user list a question was asked about why the PDF file
size is almost always bigger in Linux wrt Windows, even when the file,
Writer in this case, is exactly the same.
One of the ideas that popped up the way the fonts are embedded in PDF.
So, just to investigate, I had a look about this topic by looking in the
source code.
It seems to me that the main decision about embedding is made in:
SRC680_m212 - vcl/source/gdi/pdfwriter_impl.cxx:5443
is it right or I'm talking nonsense?
Yes and no. The font is already selected at the time through the
mysterious workings of the SalLayout derivatives.
any hints where go digging for this?
I think most of it is done in vcl/source/gdi/outdev3.cxx in
:ImplNewFont. However when it comes to fallbacks (like e.g. if a glyph
does not exist in a font) things get mor complicated.
And: this difference in PDF size, can it be related to the different
display system in the two platforms?
On Linux systems there usually are more Type1 fonts available than on
Windows. Type1 fonts do not get subsetted, so the whole file gets in.
hmm, so I gather from this that only True Type or Open Type fonts can be
subsetted on both platforms, right?
Actually only TrueType fonts. Of OpenType fonts those that are basically
TrueType fonts. Type1 gets embedded completely.
The reason why I'm asking all this is to report back to OOo user list,
and to improve my knowledge for a migration to OOo from another office
suite.
If you want metric compatibility between different platforms or even two
computers running the same platform, you definitely need the same font
files on all machines involved. Unlike PDF OOo's documents do not
contain the fonts themselves, so they are differently formatted if
different fonts are available.
Kind regards, pl
--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
-- Author unknown
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]