diff options
Diffstat (limited to 'src/mbgl/style/layers/symbol_layer_impl.cpp')
-rw-r--r-- | src/mbgl/style/layers/symbol_layer_impl.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mbgl/style/layers/symbol_layer_impl.cpp b/src/mbgl/style/layers/symbol_layer_impl.cpp index e35e7b0b9f..60ebe57f96 100644 --- a/src/mbgl/style/layers/symbol_layer_impl.cpp +++ b/src/mbgl/style/layers/symbol_layer_impl.cpp @@ -27,13 +27,11 @@ void SymbolLayer::Impl::populateFontStack(std::set<FontStack>& fontStack) const } layout.get<TextFont>().match( - [&fontStack] (Undefined) { - fontStack.insert({"Open Sans Regular", "Arial Unicode MS Regular"}); + [&fontStack](Undefined) { + fontStack.insert({util::LAST_RESORT_ALPHABETIC_FONT, util::LAST_RESORT_PAN_UNICODE_FONT}); }, - [&fontStack] (const FontStack& constant) { - fontStack.insert(constant); - }, - [&] (const auto& function) { + [&fontStack](const FontStack& constant) { fontStack.insert(constant); }, + [&](const auto& function) { for (const auto& value : function.possibleOutputs()) { if (value) { fontStack.insert(*value); @@ -42,8 +40,7 @@ void SymbolLayer::Impl::populateFontStack(std::set<FontStack>& fontStack) const break; } } - } - ); + }); } } // namespace style |