Debian Codegraph @

README

raw
1 dvisvgm -- A DVI to SVG converter
2
3 DESCRIPTION
4
5 dvisvgm is a utility for TeX/LaTeX users. It converts DVI, EPS, and
6 PDF files to the XML-based scalable vector graphics format SVG.
7
8
9 DEPENDENCIES
10
11 dvisvgm relies on the following free libraries:
12 * Clipper (https://www.angusj.com/delphi/clipper/documentation/Docs/Overview/_Body.htm)
13 To compute the intersections of two curved paths, dvisvgm flattens the paths
14 to polygons, intersects them using Clipper, and reconstructs the curves
15 afterwards.
16
17 * FreeType 2 (https://freetype.org)
18 This library is used to extract the glyph outlines from vector fonts
19 (PFB, OTF, TTF).
20
21 * Ghostscript (https://www.ghostscript.com)
22 The PostScript special handler requires the Ghostscript shared library
23 libgs.so.N (Linux) or gsdll32.dll/gsdll64.dll (Windows) to be installed.
24 If the configure script finds the corresponding Ghostscript development
25 files on the system, it directly links against libgs.so.N, where N is the
26 library's ABI version. Otherwise, the library is looked up during runtime,
27 and the PostScript support is enabled only if the shared library can be
28 found. Due to incompatible changes of the Ghostscript API, dvisvgm requires
29 Ghostscript 8.31 or later.
30
31 * kpathsea (https://tug.org/kpathsea)
32 This library is part of the Web2C package and is usually installed in
33 conjunction with a TeX distribution. kpathsea provides functions for
34 searching files in the large texmf tree. Please ensure that you use the
35 kpathsea version coming with or matching your TeX system.
36
37 * potracelib (https://potrace.sourceforge.net)
38 Peter Selinger's bitmap tracing library is utilized to vectorize Metafont's
39 bitmap output. A recent version is also part of the dvisvgm sources.
40
41 * ttfautohint (https://www.freetype.org/ttfautohint)
42 dvisvgm can optionally be built with ttfautohint support to allow for
43 autohinting the generated TrueType, WOFF, and WOFF2 fonts. Since this is
44 still an experimental feature, ttfautohint support is disabled by default.
45 The development files required for Windows can be found at
46 https://github.com/mgieseki/ttfautohint-dll.
47
48 * woff2 and brotli (https://github.com/google/woff2)
49 These Google libraries are bundled with the dvisvgm sources. They are used
50 to create WOFF2 from TrueType fonts.
51
52 * xxHash (https://github.com/Cyan4973/xxHash)
53 The xxHash library provides a fast hash algorithm. dvisvgm uses it to
54 create unique integer values from PostScript character names in order to
55 store them in a compact way together with their Unicode points. A recent
56 version of xxHash is bundled with the dvisvgm sources.
57
58 * zlib (https://www.zlib.net)
59 This library is required to create compressed SVGZ files.
60
61
62 BUILDING DVISVGM FROM SOURCE
63
64 dvisvgm is written in C++11 (ISO C++ standard 2011) and requires an appropriate
65 compiler, like GCC 4.9, Clang 3.3, or any later version. The configure script
66 checks for the availability of C++11 support and adds the proper compiler
67 options if necessary.
68
69 Quick installation info:
70 * ensure that the development packages of all libraries, listed above,
71 are installed
72 * type "autoreconf -fi" if "configure" is not present in the dvisvgm
73 root folder
74 * either type "./configure" if you don't want to use the bundled libraries
75 brotli, potrace, woff2, and xxHash but link against the corresponding
76 system libraries,
77 or type "./configure --enable-bundled-libs" in order to build and
78 statically link the bundled libraries.
79 * type "make"
80 * type "make install" as root (or "sudo make install")
81
82 For generic configuration instructions see the file INSTALL.
83
84 The configure script should recognize all necessary parameters.
85 If a library is installed but not detected, specify its location
86 as commandline parameter of configure, e.g.
87 ./configure --with-freetype=/usr/local/freetype
88 (all available options can be displayed with ./configure --help)
89
90 The tracer module calls Metafont in case of lacking TFM or PFB files
91 via a system call. Please ensure that Metafont is installed and
92 reachable through the system's search path.
93
94 If you don't like compiling the sources yourself, you can
95 download pre-compiled executables for Windows and MiKTeX
96 from the project website instead (see below).
97
98
99 USAGE
100 Information about the command-line interface and the available options can be
101 found in the manual page.
102
103
104 ADDITIONAL INFORMATION
105 This package is available from CTAN (dviware/dvisvgm) and can be downloaded
106 from the project website as well:
107
108 https://dvisvgm.de
109
110 Here you can find the sources, pre-compiled binaries and further additional
111 information about the converter and related topics.
112
113 If you've found a bug, please let me know. You can either send me an email or
114 preferably use the bug tracker at GitHub (https://github.com/mgieseki/dvisvgm).
115
116
117 COPYRIGHT
118
119 Copyright (C) 2005-2026 Martin Gieseking <[email protected]>
120
121 This program is free software; you can redistribute it and/or modify it
122 under the terms of the GNU General Public License as published by the
123 Free Software Foundation; either version 3 of the License, or (at your
124 option) any later version.
125
126 This program is distributed in the hope that it will be useful, but
127 WITHOUT ANY WARRANTY; without even the implied warranty of
128 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
129 Public License for more details.
130
131 See file COPYING for details.
132