summaryrefslogtreecommitdiff
path: root/src/lib/render_text.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-26 23:08:56 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-26 23:08:56 +0000
commitb71585da17d94606c8d013b5654946ddc61cfe1e (patch)
tree346977e00e135b663f8aa3545b74c93edadbe050 /src/lib/render_text.cc
parent078a0f98e3f741210be7f839292f41f28b6a403e (diff)
pot/merge.
Diffstat (limited to 'src/lib/render_text.cc')
-rw-r--r--src/lib/render_text.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/render_text.cc b/src/lib/render_text.cc
index 7ae7d9152..267e8619b 100644
--- a/src/lib/render_text.cc
+++ b/src/lib/render_text.cc
@@ -165,8 +165,8 @@ render_line (list<StringText> subtitles, list<shared_ptr<Font> > fonts, dcp::Siz
try {
font_files.set (FontFiles::NORMAL, shared_path () / "LiberationSans-Regular.ttf");
- font_files.set (FontFiles::ITALIC, shared_path () / "LiberationSans-Italic.ttf");
- font_files.set (FontFiles::BOLD, shared_path () / "LiberationSans-Bold.ttf");
+// font_files.set (FontFiles::ITALIC, shared_path () / "LiberationSans-Italic.ttf");
+// font_files.set (FontFiles::BOLD, shared_path () / "LiberationSans-Bold.ttf");
} catch (boost::filesystem::filesystem_error& e) {
}
@@ -176,12 +176,12 @@ render_line (list<StringText> subtitles, list<shared_ptr<Font> > fonts, dcp::Siz
if (!font_files.get(FontFiles::NORMAL) || !boost::filesystem::exists(font_files.get(FontFiles::NORMAL).get())) {
font_files.set (FontFiles::NORMAL, "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf");
}
- if (!font_files.get(FontFiles::ITALIC) || !boost::filesystem::exists(font_files.get(FontFiles::ITALIC).get())) {
- font_files.set (FontFiles::ITALIC, "/usr/share/fonts/truetype/liberation/LiberationSans-Italic.ttf");
- }
- if (!font_files.get(FontFiles::BOLD) || !boost::filesystem::exists(font_files.get(FontFiles::BOLD).get())) {
- font_files.set (FontFiles::BOLD, "/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf");
- }
+ // if (!font_files.get(FontFiles::ITALIC) || !boost::filesystem::exists(font_files.get(FontFiles::ITALIC).get())) {
+ // font_files.set (FontFiles::ITALIC, "/usr/share/fonts/truetype/liberation/LiberationSans-Italic.ttf");
+ // }
+ // if (!font_files.get(FontFiles::BOLD) || !boost::filesystem::exists(font_files.get(FontFiles::BOLD).get())) {
+ // font_files.set (FontFiles::BOLD, "/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf");
+ // }
BOOST_FOREACH (shared_ptr<Font> i, fonts) {
if (i->id() == subtitles.front().font() && i->file(FontFiles::NORMAL)) {