Comments (6)
I can't reproduce the problem. What version of dvisvgm and mutool do you use? Please post the output of dvisvgm -V1
.
from dvisvgm.
dvisvgm 3.1.2 (x86_64-pc-win64)
brotli: 1.1.0
clipper: 6.2.1
freetype: 2.13.2
Ghostscript: 9.25
MiKTeX: 22.12
mutool: 1.21.0
potrace: 1.16
xxhash: 0.8.2
zlib: 1.3
Just realized that many are outdated. I'll try to update them.
I updaded mutool successfully but ghoscript and miktex are still showing as the old version when i run dvisvgm -V1 , I already changed the environmental variable path to the correct folders. Am I missing something? Thanks Martin.
from dvisvgm.
Ok, thanks for the additional info. I was able to reproduce the issue now. Unfortunately, it's related to the limited functionality available via mutool
. The PDF file contains four different font resources that all have the same internal name PCPYGD+-
:
Fonts (4):
1 (7 0 R): Type0 'PCPYGD+-' Identity-H (11 0 R)
1 (7 0 R): Type0 'PCPYGD+-' Identity-H (12 0 R)
1 (7 0 R): Type1 'PCPYGD+-' WinAnsiEncoding (8 0 R)
1 (7 0 R): Type1 'PCPYGD+-' WinAnsiEncoding (13 0 R)
Therefore, it's not possible to identify the different fonts by their name which is essential for dvisvgm to work properly. Maybe you can tweak the font embedding options of the application used to create the PDF files in order to get more distinct names when subsetting fonts.
from dvisvgm.
I'll try to change it manually. Is is that mutool doesn't identify the ID following the name font?
I found this link (looks like the same issue): pymupdf/PyMuPDF#2110 (comment)
Here are the fonts identified on test1 with an online font downloader:
from dvisvgm.
Is is that mutool doesn't identify the ID following the name font?
In the PDF file, there are no numbers appended to the font names. They are probably added by your font downloader. As shown above, all four font objects got the name PCPYGD+-
. Internally they can be distinguished by their object IDs but mutool doesn't provide a way to make them accessible to the user in the backend. Fonts are referenced there only by their names which might be ambiguous, like in your case.
from dvisvgm.
Ah, i see. If I find a solution I'll post it here. Unfortunately there's no option to export the design in different way for fonts on Adobe Express.
from dvisvgm.
Related Issues (20)
- Assertion violation + core dump HOT 3
- Raster instead of vector HOT 1
- Baseline incorrect with Chinese characters HOT 15
- Ghostscript 10.01.0+ support HOT 6
- Hyphen character missing when using luatex with DVI output HOT 5
- PDF -> SVG: Pixels cut-off on right border HOT 4
- pstricks: PostScript error: undefined in NodeScale HOT 7
- Request for reduced information verbosity level/flag HOT 6
- TL build patch: potrace HOT 2
- TL build patch: main src/Makefile.am HOT 1
- InvalidDVIFileException in upTeX DVI only on Solaris HOT 2
- Deferred initialization of PS doesn't work HOT 4
- color gradient missing in svg file HOT 4
- Breakage with libgs-10.02 creating svg file from asy. HOT 15
- 3D plots in PDFs generated with `interp` shading disappear from SVG HOT 1
- Unable to convert Japanese characters to SVG from DVI HOT 13
- Ghostscript sill not found (macOS) HOT 4
- Wrong clipping and viewport with multiple pages converted at once HOT 2
- element id overlap HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvisvgm.