diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-15 16:56:18 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-15 16:56:18 +0000 |
| commit | a5902c6008fd20392c7248c30bc469310122c527 (patch) | |
| tree | 8b2712fd09a64c4ca3ea01f2d6304f39837abddd /src/lib/font.h | |
| parent | 99dc00531b985aa1efa23bec5a00b1a5ad26e86c (diff) | |
Start of Fonts dialog for setting up subtitle fonts.
Diffstat (limited to 'src/lib/font.h')
| -rw-r--r-- | src/lib/font.h | 34 |
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; +}; |
