diff --git a/src/mbgl/renderer/symbol_bucket.cpp b/src/mbgl/renderer/symbol_bucket.cpp index c0c732084..517c8835c 100644 --- a/src/mbgl/renderer/symbol_bucket.cpp +++ b/src/mbgl/renderer/symbol_bucket.cpp @@ -45,8 +45,8 @@ std::vector SymbolBucket::processFeatures(const GeometryTileLayer const FilterExpression& filter, GlyphStore &glyphStore, const Sprite &sprite) { - const bool has_text = layout.text.field.size(); - const bool has_icon = layout.icon.image.size(); + const bool has_text = !layout.text.field.empty() && !layout.text.font.empty(); + const bool has_icon = !layout.icon.image.empty(); std::vector features; diff --git a/src/mbgl/style/style_layout.hpp b/src/mbgl/style/style_layout.hpp index 96daff327..90bc71fd6 100644 --- a/src/mbgl/style/style_layout.hpp +++ b/src/mbgl/style/style_layout.hpp @@ -61,7 +61,7 @@ public: struct { RotationAlignmentType rotation_alignment = RotationAlignmentType::Viewport; std::string field; - std::string font; + std::string font = "Open Sans Regular, Arial Unicode MS Regular"; float max_size = 16.0f; float max_width = 15.0f /* em */; float line_height = 1.2f /* em */;