return _points;
}
+ bool specified () const;
+
float proportional (int screen_height_in_points) const;
int points (int screen_height_in_points) const;
+ static FontSize from_points (int p);
+ static FontSize from_proportional (float p);
+
private:
/** as a proportion of screen height */
boost::optional<float> _proportional;
};
+extern bool operator== (FontSize const & a, FontSize const & b);
+
}
#endif