Using a font that already exists in a PDF is NOT a good idea, because in
almost all cases the embedded font is NOT complete.

It is most likely a subset embed, which means that it doesn't have the full
complement of glyphs.  So what happens when you want to use a glyph that
isn't in the PDF?

Even for fonts that are "fully" embedded - that only means that the glyphs
are present, it does NOT mean that all other parts of the font data are
embedded.  The PDF producer can (and many do) remove all sorts of other
information from the fonts including hinting and layout tables that won't be
needed to just render - BUT that you would need to do your layout.

This is just one of the many reasons that you can NOT edit a PDF using it's
embedded fonts...

Leonard

On Tue, Feb 9, 2010 at 11:16 AM, Ulrich Simon <[email protected]> wrote:

>  Hi!
>
> We want to add some simple variable data printing (VDP) functionality into
> our software and I am
> about implementing a method with PoDoFo using PDF Forms.
>
> I have a quite new build from PoDoFo (2010).
>
> My problem:
>
> I want to use the embedded (TrueType) font to create the AppearanceStream
> for a text field.
> There is no problem if I load a new font from harddisk. But when I try to
> use
>
> PdfFont* PdfFontCache::GetFont( PdfObject* pObject )
>
> I get an PdfObject != NULL, but then
>
> font->SetFontSize(fontSize);
>
> fails. m_face is NULL. It seams it's not implemented yet.
>
> Right?
>
> Without the face I can not calculate the extents of the text.
> Is there a special reason, why the function is not implemented?
>
> I don't know if this could work:
>
> PdfFontMetrics::PdfFontMetrics( FT_Library* pLibrary, PdfObject*
> pDescriptor ) {
>     ...
>     m_bufFontData = PdfRefCountedBuffer( nBufLen );
>     memcpy( m_bufFontData.GetBuffer(), #pContent#, #nContentLen# );
>     InitFromBuffer();
> }
>
> Thanks for your help!
>
> Ulrich
> --
>  [image: Besuchen Sie unseren Demo-Server - kostenlos & 
> unverbindlich]<http://www.dots-software.com/index.php?id=234&L=0&utm_source=demo-server08&utm_medium=email>
>
> Ulrich Simon
> www.dots-software.com
>
> dots Software GmbH - Schlesische Straße 27 - 10997 Berlin, Germany
> Telefon: +49 - (0)30 - 695 799 - 47
> Fax: +49 - (0)30 - 695 799 - 55
> Amtsgericht Berlin Charlottenburg HRB 65201
> Geschäftsführer: Ken Osuga, Olaf Lorenz
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
>

<<dots-Web-to-Print-Demo-Server.gif>>

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to