Blame SOURCES/poppler-0.26.5-add-font-substitute-name-to-qt-bindings.patch

c2e870
diff --git a/qt4/src/poppler-fontinfo.cc b/qt4/src/poppler-fontinfo.cc
c2e870
index 81aed71..a8ce1fc 100644
c2e870
--- a/qt4/src/poppler-fontinfo.cc
c2e870
+++ b/qt4/src/poppler-fontinfo.cc
c2e870
@@ -50,6 +50,11 @@ QString FontInfo::name() const
c2e870
 	return m_data->fontName;
c2e870
 }
c2e870
c2e870
+QString FontInfo::substituteName() const
c2e870
+{
c2e870
+	return m_data->fontSubstituteName;
c2e870
+}
c2e870
+
c2e870
 QString FontInfo::file() const
c2e870
 {
c2e870
 	return m_data->fontFile;
c2e870
diff --git a/qt4/src/poppler-private.h b/qt4/src/poppler-private.h
c2e870
index 0d11e83..f0e9fa4 100644
c2e870
--- a/qt4/src/poppler-private.h
c2e870
+++ b/qt4/src/poppler-private.h
c2e870
@@ -162,6 +162,7 @@ namespace Poppler {
c2e870
 		FontInfoData( const FontInfoData &fid )
c2e870
 		{
c2e870
 			fontName = fid.fontName;
c2e870
+			fontSubstituteName = fid.fontSubstituteName;
c2e870
 			fontFile = fid.fontFile;
c2e870
 			isEmbedded = fid.isEmbedded;
c2e870
 			isSubset = fid.isSubset;
c2e870
@@ -172,6 +173,7 @@ namespace Poppler {
c2e870
 		FontInfoData( ::FontInfo* fi )
c2e870
 		{
c2e870
 			if (fi->getName()) fontName = fi->getName()->getCString();
c2e870
+			if (fi->getSubstituteName()) fontSubstituteName = fi->getSubstituteName()->getCString();
c2e870
 			if (fi->getFile()) fontFile = fi->getFile()->getCString();
c2e870
 			isEmbedded = fi->getEmbedded();
c2e870
 			isSubset = fi->getSubset();
c2e870
@@ -180,6 +182,7 @@ namespace Poppler {
c2e870
 		}
c2e870
c2e870
 		QString fontName;
c2e870
+		QString fontSubstituteName;
c2e870
 		QString fontFile;
c2e870
 		bool isEmbedded : 1;
c2e870
 		bool isSubset : 1;
c2e870
diff --git a/qt4/src/poppler-qt4.h b/qt4/src/poppler-qt4.h
c2e870
index 30295cf..d38a4a3 100644
c2e870
--- a/qt4/src/poppler-qt4.h
c2e870
+++ b/qt4/src/poppler-qt4.h
c2e870
@@ -202,6 +202,11 @@ namespace Poppler {
c2e870
 	*/
c2e870
 	QString name() const;
c2e870
c2e870
+	/**
c2e870
+	   The name of the substitute font. Can be QString::null if the font has no substitute font
c2e870
+	*/
c2e870
+	QString substituteName() const;
c2e870
+
c2e870
 	/**
c2e870
 	   The path of the font file used to represent this font on this system,
c2e870
 	   or a null string is the font is embedded