summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
index 488e9e2b479..4c5bf550b23 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
@@ -2,7 +2,7 @@
** dvisvgm.cpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2022 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2023 Martin Gieseking <martin.gieseking@uos.de> **
** **
** This program is free software; you can redistribute it and/or **
** modify it under the terms of the GNU General Public License as **
@@ -40,6 +40,7 @@
#include "HyperlinkManager.hpp"
#include "Message.hpp"
#include "PageSize.hpp"
+#include "PDFHandler.hpp"
#include "PDFToSVG.hpp"
#include "PSInterpreter.hpp"
#include "PsSpecialHandler.hpp"
@@ -48,6 +49,7 @@
#include "optimizer/SVGOptimizer.hpp"
#include "SVGOutput.hpp"
#include "System.hpp"
+#include "ttf/TTFWriter.hpp"
#include "XMLParser.hpp"
#include "XXHashFunction.hpp"
#include "utility.hpp"
@@ -56,8 +58,7 @@
#ifndef DISABLE_WOFF
#include <brotli/encode.h>
//#include <woff2/version.h>
-#include "ffwrapper.h"
-#include "TTFAutohint.hpp"
+#include "ttf/TTFAutohint.hpp"
#endif
using namespace std;
@@ -156,7 +157,7 @@ static bool set_temp_dir (const CommandLine &args) {
if (!args.tmpdirOpt.value().empty())
FileSystem::TMPDIR = args.tmpdirOpt.value();
else {
- cout << "temporary folder: " << FileSystem::tmpdir() << '\n';
+ cout << "temporary folder: " << FileSystem::ensureSystemSlashes(FileSystem::tmpdir(true)) << '\n';
return false;
}
}
@@ -255,9 +256,9 @@ class VersionInfo {
static void print_version (bool extended) {
string versionstr = string(PROGRAM_NAME)+" "+PROGRAM_VERSION;
-#ifdef TARGET_SYSTEM
- if (extended && strlen(TARGET_SYSTEM) > 0)
- versionstr += " (" TARGET_SYSTEM ")";
+#ifdef HOST_SYSTEM
+ if (extended && strlen(HOST_SYSTEM) > 0)
+ versionstr += " (" HOST_SYSTEM ")";
#endif
cout << versionstr << '\n';
if (extended) {
@@ -269,11 +270,11 @@ static void print_version (bool extended) {
versionInfo.add("xxhash", XXH64HashFunction::version(), 3, 100);
versionInfo.add("zlib", zlibVersion());
versionInfo.add("Ghostscript", Ghostscript().revisionstr(), true);
+ versionInfo.add("mutool", PDFHandler::mutoolVersion(), true);
#ifndef DISABLE_WOFF
versionInfo.add("brotli", BrotliEncoderVersion(), 3, 0x1000);
// versionInfo.add("woff2", woff2::version, 3, 0x100);
- versionInfo.add("fontforge", ff_version());
- versionInfo.add("ttfautohint", TTFAutohint().version(), true);
+ versionInfo.add("ttfautohint", ttf::TTFAutohint().version(), true);
#endif
#ifdef MIKTEX
versionInfo.add("MiKTeX", FileFinder::instance().version());
@@ -371,6 +372,10 @@ static void set_variables (const CommandLine &cmdline) {
PsSpecialHandler::SHADING_SEGMENT_SIZE = max(1, cmdline.gradSegmentsOpt.value());
PsSpecialHandler::SHADING_SIMPLIFY_DELTA = cmdline.gradSimplifyOpt.value();
PsSpecialHandler::BITMAP_FORMAT = util::tolower(cmdline.bitmapFormatOpt.value());
+#ifdef TTFDEBUG
+ ttf::TTFWriter::CREATE_PS_GLYPH_OUTLINES = cmdline.debugGlyphsOpt.given();
+#endif
+ PsSpecialHandler::EMBED_BITMAP_DATA = cmdline.embedBitmapsOpt.given();
if (!PSInterpreter::imageDeviceKnown(PsSpecialHandler::BITMAP_FORMAT)) {
ostringstream oss;
oss << "unknown image format '" << PsSpecialHandler::BITMAP_FORMAT << "'\nknown formats:\n";