Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
set the correct v7 default font
Browse files Browse the repository at this point in the history
- also skip layers with empty font names
  • Loading branch information
kkaefer committed Apr 9, 2015
1 parent 6efce53 commit ec94e03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mbgl/renderer/symbol_bucket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ std::vector<SymbolFeature> 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<SymbolFeature> features;

Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/style/style_layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class StyleLayoutSymbol {
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 */;
Expand Down

0 comments on commit ec94e03

Please sign in to comment.