summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-01-26 08:53:02 +0000
committertavmjong-free <tavmjong@free.fr>2017-01-26 08:53:02 +0000
commit9bd36f8f6615ea7daa54fbd9b7b7f378f17787df (patch)
tree9087c94bb14464c24c63e2cff84db30bd6fd5533 /src/libnrtype
parentdefaults to about.svg when localized versions fail (diff)
downloadinkscape-9bd36f8f6615ea7daa54fbd9b7b7f378f17787df.tar.gz
inkscape-9bd36f8f6615ea7daa54fbd9b7b7f378f17787df.zip
Add font name to debugging output.
(bzr r15454)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG-Compute.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libnrtype/Layout-TNG-Compute.cpp b/src/libnrtype/Layout-TNG-Compute.cpp
index e6da9ba63..80541c228 100644
--- a/src/libnrtype/Layout-TNG-Compute.cpp
+++ b/src/libnrtype/Layout-TNG-Compute.cpp
@@ -210,6 +210,7 @@ class Layout::Calculator
*/
static void dumpPangoItemsOut(ParagraphInfo *para){
std::cout << "Pango items: " << para->pango_items.size() << std::endl;
+ font_factory * factory = font_factory::Default();
for(unsigned pidx = 0 ; pidx < para->pango_items.size(); pidx++){
std::cout
<< "idx: " << pidx
@@ -217,6 +218,8 @@ static void dumpPangoItemsOut(ParagraphInfo *para){
<< para->pango_items[pidx].item->offset
<< " length: "
<< para->pango_items[pidx].item->length
+ << " font: "
+ << factory->ConstructFontSpecification( para->pango_items[pidx].font )
<< std::endl;
}
}