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

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