summaryrefslogtreecommitdiff
path: root/include/mbgl/util/font_stack.hpp
blob: ccc1a0606882bf907d0a05d534e8ed192e8c197b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <mbgl/util/immutable.hpp>
#include <mbgl/style/layer.hpp>

#include <string>
#include <vector>
#include <set>

namespace mbgl {

// An array of font names
using FontStack = std::vector<std::string>;
using FontStackHash = std::size_t;

std::string fontStackToString(const FontStack&);

struct FontStackHasher {
    FontStackHash operator()(const FontStack&) const;
};

// Statically evaluate layer properties to determine what font stacks are used.
std::set<FontStack> fontStacks(const std::vector<Immutable<style::Layer::Impl>>&);

} // namespace mbgl