#include "font.h"
#include "font_config.h"
#include "util.h"
+#include <dcp/filesystem.h>
#include <fontconfig/fontconfig.h>
#include <boost/filesystem.hpp>
#include <boost/optional.hpp>
{
for (auto file: _temp_files) {
boost::system::error_code ec;
- boost::filesystem::remove(file, ec);
+ dcp::filesystem::remove(file, ec);
}
}
string
FontConfig::make_font_available(shared_ptr<dcpomatic::Font> font)
{
+ DCPOMATIC_ASSERT(font);
+
auto existing = _available_fonts.find(font->content());
if (existing != _available_fonts.end()) {
return existing->second;