diff --git a/src/map.cpp b/src/map.cpp index 0bd9b66b5..0e7757908 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -291,9 +291,13 @@ bool Map::register_fonts(std::string const& dir, bool recurse) bool Map::load_fonts() { bool result = false; - for (auto const& kv : font_file_mapping_) + auto const& global_mapping = freetype_engine::get_mapping(); + auto const& global_cache = freetype_engine::get_cache(); + for (auto const& kv : font_file_mapping_) // for every face-name:filepath { - auto const& global_mapping = freetype_engine::get_mapping(); + auto const& face_name = kv.second.second; + // if font data is already cached + std::clog << "kv.first " << kv.first << "\n"; if ((global_mapping.find(kv.first) == global_mapping.end()) && (font_memory_cache_.find(kv.second.second) == font_memory_cache_.end())) { diff --git a/src/text/placements/registry.cpp b/src/text/placements/registry.cpp index 95ebd1e88..e4abaf038 100644 --- a/src/text/placements/registry.cpp +++ b/src/text/placements/registry.cpp @@ -35,6 +35,7 @@ registry::registry() { register_name("simple", &text_placements_simple::from_xml); register_name("list", &text_placements_list::from_xml); + register_name("dummy", &text_placements_list::from_xml); } void registry::register_name(std::string name, from_xml_function_ptr ptr, bool overwrite) diff --git a/tests/data/good_maps/text-placement-type-dummy.xml b/tests/data/good_maps/text-placement-type-dummy.xml new file mode 100644 index 000000000..9b4379969 --- /dev/null +++ b/tests/data/good_maps/text-placement-type-dummy.xml @@ -0,0 +1,11 @@ + + + + + +