diff --git a/src/graphics/text/TextRasterizer.cpp b/src/graphics/text/TextRasterizer.cpp index a3ca4fa..db53f73 100644 --- a/src/graphics/text/TextRasterizer.cpp +++ b/src/graphics/text/TextRasterizer.cpp @@ -133,7 +133,7 @@ std::unique_ptr TextRasterizer::size(const rasterizationRequest &r if (request.noWrap) { glyphCount = i; // we're done - std::cout << "TextRasterizer::size - newline found no wrap is on" << std::endl; + std::cout << "TextRasterizer::size - newline found no wrap is on [" << request.text << "]" << std::endl; break; } else { xmax=std::max(xmax, cx); @@ -209,12 +209,11 @@ std::unique_ptr TextRasterizer::size(const rasterizationRequest &r response->height = textureHeight; //std::cout << "adjusted:" << (int)width << "x" << (int)height << std::endl; } - + + // inline position where we leave off response->endingX = cx - request.sourceStartX; response->endingY = cy + 2 + request.sourceStartY; - // FIXME: how about endingX,Y? - //return std::make_unique>(std::pair(response->width, response->height)); return response; }