From 9bd36f8f6615ea7daa54fbd9b7b7f378f17787df Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 26 Jan 2017 09:53:02 +0100 Subject: Add font name to debugging output. (bzr r15454) --- src/libnrtype/Layout-TNG-Compute.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libnrtype') 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; } } -- cgit v1.2.3