Code Monkey home page Code Monkey logo

Comments (6)

mgieseki avatar mgieseki commented on September 3, 2024

I can't reproduce the problem. What version of dvisvgm and mutool do you use? Please post the output of dvisvgm -V1.

from dvisvgm.

povpie avatar povpie commented on September 3, 2024

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.

mgieseki avatar mgieseki commented on September 3, 2024

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.

povpie avatar povpie commented on September 3, 2024

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:
Screenshot (2)

from dvisvgm.

mgieseki avatar mgieseki commented on September 3, 2024

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.

povpie avatar povpie commented on September 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.