20 #ifndef LIBSUB_FONT_SIZE_H
21 #define LIBSUB_FONT_SIZE_H
23 #include <boost/optional.hpp>
36 void set_proportional (
float p) {
40 void set_points (
int p) {
44 boost::optional<float> proportional ()
const {
48 boost::optional<int> points ()
const {
52 bool specified ()
const;
54 float proportional (
int screen_height_in_points)
const;
55 int points (
int screen_height_in_points)
const;
58 static FontSize from_proportional (
float p);
62 boost::optional<float> _proportional;
64 boost::optional<int> _points;
A description of a font's size in one of a number of ways.
Definition: font_size.h:34