[core] Add a method for statically evaluating font stacks used by a style

This commit is contained in:
John Firebaugh
2016-02-01 16:01:15 -08:00
parent 7d6c6c00ca
commit f3d4107d19
5 changed files with 74 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ public:
T evaluate(const StyleCalculationParameters&) const;
float getBase() const { return base; }
const std::vector<std::pair<float, T>>& getStops() const { return stops; }
private:
float base = 1;
std::vector<std::pair<float, T>> stops;