Index: PdfFontFactory.cpp
===================================================================
--- PdfFontFactory.cpp	(revision 1977)
+++ PdfFontFactory.cpp	(working copy)
@@ -218,11 +218,16 @@
             pObject->GetIndirectKey( "DescendantFonts" )->GetArray();
         PdfObject* pFontObject = NULL;
         
-        if (descendant.size() && descendant[0].IsReference())
-        {
-            pFontObject = pObject->GetOwner()->GetObject( descendant[0].GetReference() );
-
-            pDescriptor = pFontObject->GetIndirectKey( "FontDescriptor" );
+        if (descendant.size()) {
+			if (descendant[0].IsReference()) {
+				pFontObject = pObject->GetOwner()->GetObject( descendant[0].GetReference() );
+				pDescriptor = pFontObject->GetIndirectKey( "FontDescriptor" );
+			}
+			if (descendant[0].IsDictionary()) {
+				pFontObject = (PdfObject*) &descendant[0];
+				pFontObject->SetOwner(pObject->GetOwner());
+				pDescriptor = pFontObject->GetIndirectKey( "FontDescriptor" );
+			}
         }
         pEncoding   = pObject->GetIndirectKey( "Encoding" );
 
