Merge branch 'master' into smart-geojson

This commit is contained in:
artemp 2015-10-16 10:33:32 +01:00
commit 584fc5a61a
3 changed files with 6 additions and 2 deletions

View file

@ -196,7 +196,7 @@ void MainWindow::load_map_file(QString const& filename)
mapnik::auto_cpu_timer t(std::clog, "loading map took: ");
mapnik::load_map(*map,filename.toStdString());
}
catch (std::exception & ex)
catch (std::exception const& ex)
{
std::cout << ex.what() << "\n";
}

View file

@ -511,7 +511,7 @@ void render_agg(mapnik::Map const& map, double scaling_factor, QPixmap & pix)
//{
// std::cerr << ex.what() << std::endl;
//}
catch (const std::exception & ex)
catch (std::exception const& ex)
{
std::cerr << "exception: " << ex.what() << std::endl;
}

View file

@ -101,6 +101,10 @@ static void shape_text(text_line & line,
hb_buffer_set_direction(buffer.get(), (text_item.dir == UBIDI_RTL)?HB_DIRECTION_RTL:HB_DIRECTION_LTR);
hb_buffer_set_script(buffer.get(), _icu_script_to_script(text_item.script));
hb_font_t *font(hb_ft_font_create(face->get_face(), nullptr));
// https://github.com/mapnik/test-data-visual/pull/25
#if HB_VERSION_ATLEAST(1, 0 , 5)
hb_ft_font_set_load_flags(font,FT_LOAD_DEFAULT | FT_LOAD_NO_HINTING);
#endif
hb_shape(font, buffer.get(), ff_settings.get_features(), ff_count);
hb_font_destroy(font);