MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
font_stack.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 #include <mbgl/style/layer.hpp>
5 
6 #include <string>
7 #include <vector>
8 #include <set>
9 
10 namespace mbgl {
11 
12 // An array of font names
13 using FontStack = std::vector<std::string>;
14 using FontStackHash = std::size_t;
15 
17 
20 };
21 
22 // Statically evaluate layer properties to determine what font stacks are used.
23 std::set<FontStack> fontStacks(const std::vector<Immutable<style::Layer::Impl>>&);
24 
25 } // namespace mbgl
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
Definition: actor.hpp:15
std::set< FontStack > fontStacks(const std::vector< Immutable< style::Layer::Impl >> &)
std::vector< std::string > FontStack
Definition: font_stack.hpp:13
std::size_t FontStackHash
Definition: font_stack.hpp:14
std::string fontStackToString(const FontStack &)
FontStackHash operator()(const FontStack &) const