Ticket #86: debug-path.patch
| File debug-path.patch, 2.0 kB (added by artem, 8 months ago) |
|---|
-
include/mapnik/font_engine_freetype.hpp
333 333 FT_BBox bbox; 334 334 bbox.xMin = bbox.yMin = 32000; 335 335 bbox.xMax = bbox.yMax = -32000; //hmm?? 336 std::cerr << " New glyphs: " << path->num_nodes() << std::endl; 336 337 337 338 for (int i = 0; i < path->num_nodes(); i++) 338 339 { … … 340 341 double x, y, angle; 341 342 342 343 path->vertex(&c, &x, &y, &angle); 343 // std::clog<< " prepare_glyph: " << (unsigned char)c << "," << x << "," << y << "," << angle << std::endl;344 std::cerr << " prepare_glyph: " << (unsigned char)c << "," << x << "," << y << "," << angle << std::endl; 344 345 345 346 346 347 FT_BBox glyph_bbox; … … 385 386 } 386 387 387 388 // take ownership of the glyph 389 std::cerr << " pushed_glyph: " << i << " " << (unsigned char)c << "," << x << "," << y << "," << angle << std::endl; 388 390 glyphs_.push_back(new glyph_t(image)); 389 391 } 390 392 … … 396 398 FT_Error error; 397 399 FT_Vector start; 398 400 unsigned height = pixmap_.height(); 399 401 int i = 0; 400 402 start.x = static_cast<FT_Pos>(x0 * (1 << 6)); 401 403 start.y = static_cast<FT_Pos>((height - y0) * (1 << 6)); 402 404 … … 407 409 if (halo_radius_ > 0 && halo_radius_ < 256) 408 410 { 409 411 //render halo 412 i=0; 410 413 for ( pos = glyphs_.begin(); pos != glyphs_.end();++pos) 411 414 { 412 415 416 std::cerr << " pulling_glyph: " << i++ << std::endl; 417 413 418 FT_Glyph_Transform(pos->image,0,&start); 414 419 415 420 error = FT_Glyph_To_Bitmap( &(pos->image),FT_RENDER_MODE_NORMAL,0,1);
