[poppler] poppler/qt4/tests: poppler-fonts.cpp,1.3,1.4
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Mar 11 07:19:05 PST 2006
Update of /cvs/poppler/poppler/qt4/tests
In directory kemper:/tmp/cvs-serv23798/qt4/tests
Modified Files:
poppler-fonts.cpp
Log Message:
* poppler/FontInfo.cc:
* poppler/FontInfo.h: Add getFile() function that returns
the path of the font that is beign used in the system to
represent that font
* qt4/src/poppler-document.cc:
* qt4/src/poppler-fontinfo.cc:
* qt4/src/poppler-private.h:
* qt4/src/poppler-qt4.h: Add the file() function
* qt4/tests/poppler-fonts.cpp: Show the path of the font
used to represent each font
May be interesting to have in the other frontends
Index: poppler-fonts.cpp
===================================================================
RCS file: /cvs/poppler/poppler/qt4/tests/poppler-fonts.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- poppler-fonts.cpp 28 Dec 2005 09:23:43 -0000 1.3
+++ poppler-fonts.cpp 11 Mar 2006 15:19:03 -0000 1.4
@@ -21,9 +21,9 @@
exit(1);
}
- std::cout << "name type emb sub";
+ std::cout << "name type emb sub font file";
std::cout << std::endl;
- std::cout << "------------------------------------ ------------ --- ---";
+ std::cout << "------------------------------------ ------------ --- --- ---------";
std::cout << std::endl;
foreach( Poppler::FontInfo font, doc->fonts() ) {
@@ -69,6 +69,7 @@
} else {
std::cout << "no ";
}
+ std::cout << qPrintable( QString("%1").arg(font.file()) );
std::cout << std::endl;
}
delete doc;
More information about the poppler
mailing list