summaryrefslogtreecommitdiff
path: root/src/lib/font.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-15 16:56:18 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-15 16:56:18 +0000
commita5902c6008fd20392c7248c30bc469310122c527 (patch)
tree8b2712fd09a64c4ca3ea01f2d6304f39837abddd /src/lib/font.h
parent99dc00531b985aa1efa23bec5a00b1a5ad26e86c (diff)
Start of Fonts dialog for setting up subtitle fonts.
Diffstat (limited to 'src/lib/font.h')
-rw-r--r--src/lib/font.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/font.h b/src/lib/font.h
new file mode 100644
index 000000000..59d983277
--- /dev/null
+++ b/src/lib/font.h
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include <boost/optional.hpp>
+#include <boost/filesystem.hpp>
+#include <string>
+
+class Font
+{
+public:
+ Font () {}
+ Font (std::string id_)
+ : id (id_) {}
+
+ /** Font ID, or empty for the default font */
+ boost::optional<std::string> id;
+ boost::optional<boost::filesystem::path> file;
+};