X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ffont_size.h;h=62bbd09854051c1dc91a192ed1449560fc209d80;hb=70bd2d59775cf0e3d3bacac03bf07e6101860d5f;hp=6439c8f7d114a44297491062ff672e56ecb00ceb;hpb=95dc81ecbc031b6ffaee2053884115de4ee4b393;p=libsub.git diff --git a/src/font_size.h b/src/font_size.h index 6439c8f..62bbd09 100644 --- a/src/font_size.h +++ b/src/font_size.h @@ -52,6 +52,8 @@ public: float proportional (int screen_height_in_points) const; int points (int screen_height_in_points) const; + static FontSize from_points (int p); + private: /** as a proportion of screen height */ boost::optional _proportional;