hi,  podofo helped me much, but now i meet a problem, look at this code,
PdfFont* PdfFontFactory::CreateFont( FT_Library* pLibrary, PdfObject* pObject )
{
      ............
      if( rSubType == PdfName("Type0") ) 
     {
           ................
           if ( pEncoding && pDescriptor ) // OC 18.08.2010: Avoid sigsegv
          {
                const PdfEncoding* const pPdfEncoding = 
                         PdfEncodingFactory::CreateEncoding( pEncoding );

               // OC 15.08.2010 BugFix: Parameter pFontObject added: TODO: 
untested
              pMetrics    = new PdfFontMetricsObject( pFontObject, pDescriptor, 
pPdfEncoding );
              pFont       = new PdfFontCID( pMetrics, pPdfEncoding, pObject, 
false );
          }
     }
}

here we give an object of PdfFontMetricsObject while new PdfFontCID, but in 
PdfFontCID::CreateCMap, like below,

void PdfFontCID::CreateCMap( PdfObject* pUnicode ) const
{
   ..........
   PdfFontMetricsFreetype* pFreetype = 
dynamic_cast<PdfFontMetricsFreetype*>(m_pMetrics);
   ..........
}

we use a dynamic_cast from PdfFontMetricsObject to PdfFontMetricsFreetype, so 
we will always get NULL, is this a bug?  if it is ,how could i fix it?
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to