Files
MapLibreParticleLab/include/mln/util/font_stack.hpp
Bart Louwers 2a8ebc4906 core: rename mbgl directories to mln (#4511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-22 20:50:14 +02:00

26 lines
571 B
C++

#pragma once
#include <mln/util/immutable.hpp>
#include <mln/style/layer.hpp>
#include <string>
#include <vector>
#include <set>
namespace mln {
// 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 mln