r20974 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Thu Feb 11 20:20:24 UTC 2016


Author: jghali
Date: Thu Feb 11 20:20:24 2016
New Revision: 20974

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20974
Log:
disable debug output of generated fonts subsets when exporting PDF

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20974&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Thu Feb 11 20:20:24 2016
@@ -1730,12 +1730,12 @@
 {
 	QByteArray font;
 	face.RawData(font);
-dumpFont(face.psName() + ".ttf", font);
+	/*dumpFont(face.psName() + ".ttf", font);*/
 	QList<ScFace::gid_type> glyphs = RealGlyphs.uniqueKeys();
 	glyphs.removeAll(0);
 	glyphs.prepend(0);
 	QByteArray subset = sfnt::subsetFace(font, glyphs);
-dumpFont(face.psName()+"subs.ttf", subset);
+	/*dumpFont(face.psName()+"subs.ttf", subset);*/
 	PdfId embeddedFontObj = PDF_EmbedFontObject(subset, QByteArray());
 	PdfId fontDes = PDF_WriteFontDescriptor(fontName, face, face.format(), embeddedFontObj);
 	QByteArray baseFont = Pdf::toName(sanitizeFontName(face.psName()));
@@ -1771,12 +1771,12 @@
 	QByteArray font, data;
 	face.RawData(data);
 	font = sfnt::getTable(data, "CFF ");
-	dumpFont(face.psName() + ".cff", font);
+	/*dumpFont(face.psName() + ".cff", font);*/
 	QList<ScFace::gid_type> glyphs = RealGlyphs.uniqueKeys();
 	glyphs.removeAll(0);
 	glyphs.prepend(0);
 	QByteArray subset = cff::subsetFace(font, glyphs);
-	dumpFont(face.psName()+"subs.cff", subset);
+	/*dumpFont(face.psName()+"subs.cff", subset);*/
 	PdfId embeddedFontObj = PDF_EmbedFontObject(subset, "/CIDFontType0C");
 	PdfId fontDes = PDF_WriteFontDescriptor(fontName, face, face.format(), embeddedFontObj);
 	QByteArray baseFont = Pdf::toName(sanitizeFontName(face.psName()));




More information about the scribus-commit mailing list