|
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 --
Ulrich Simon |
------------------------------------------------------------------------------ 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

