From f1ba458a19a9b998ecdb1db726106876953abcc0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 13 Jan 2015 23:04:11 +0000 Subject: Various development / fixes. --- src/font_size.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/font_size.h') diff --git a/src/font_size.h b/src/font_size.h index 0b4b357..6c3a284 100644 --- a/src/font_size.h +++ b/src/font_size.h @@ -20,6 +20,8 @@ #ifndef LIBSUB_FONT_SIZE_H #define LIBSUB_FONT_SIZE_H +#include + namespace sub { /** @class FontSize @@ -48,7 +50,10 @@ public: } float proportional (int screen_height_in_points) const; + int pixels (int screen_height_in_points) const; int points (int screen_height_in_points) const; + + bool operator== (FontSize const & other) const; private: /** as a proportion of screen height */ -- cgit v1.2.3