Code Monkey home page Code Monkey logo

Comments (9)

mgieseki avatar mgieseki commented on July 28, 2024 1

Great, thanks for the confirmation. Since the additions seem to work as expected, I'm closing the ticket for now. Feel free to open it again if you still find any issues.

from dvisvgm.

mgieseki avatar mgieseki commented on July 28, 2024

Thank you for the information. Could you please provide all files required to perform the tests independently of the TeX Live sources? Currently, I can't reproduce the segmentation faults. dvisvgm just prints several warnings, e.g.

*** dvisvgm: test for upjf_full

pre-processing DVI file (format version 3)
WARNING: font file 'upjv-r.mf' not found
WARNING: font file 'upjv-g.mf' not found
WARNING: font file 'upjf-r.mf' not found
WARNING: font file 'upjf-g.mf' not found
WARNING: font file 'cmr10.pfb' not found
processing page 1
  graphic size: 219.455205pt x 212.999624pt (77.129683mm x 74.860806mm)
  WARNING: can't embed font 'upjv-g'
  WARNING: can't embed font 'cmr10'
  WARNING: can't embed font 'upjf-r'
  WARNING: can't embed font 'upjv-r'
  WARNING: can't embed font 'upjf-g'
  output written to upjf_full.svg
1 of 1 page converted in 0.523378 seconds

As a first step it would help to have all data available to test a single case that leads to a segfault.

from dvisvgm.

t-tk avatar t-tk commented on July 28, 2024

If the following lines are comment out by #, the segfault will be reproduced.
https://github.com/t-tk/texlive-source/blob/3e827146f98f7be2a41149f6a5d74084ff43dbf4/texk/dvisvgm/tests/dvisvgm-uptex.test#L36-L39

from dvisvgm.

mgieseki avatar mgieseki commented on July 28, 2024

Ok, thanks for the hint. I've fixed the cause of the segfaults.

from dvisvgm.

mgieseki avatar mgieseki commented on July 28, 2024

The latest changes add OFM support and the corresponding VF fallback mechanism.

from dvisvgm.

t-tk avatar t-tk commented on July 28, 2024

Thank you for the update.
I imported the sources and tested.
The segfault was fixed, but I could not get the same result between w/ and w/o fallback.

t-tk/texlive-source@aea9856

from dvisvgm.

mgieseki avatar mgieseki commented on July 28, 2024

Do you get any warning messages from dvisvgm? For my tests I needed to adapt your upjf.map because it doesn't specify font files for the fonts listed there. Thus, I got the warnings shown above.

I use these entries taken from texk/dvipdfm-x/tests/upjf.map and get correct conversion results with them:

upjf-r   UniJIS-UTF16-H  HaranoAjiMincho-Regular.otf
upjf-g   UniJIS-UTF16-H  HaranoAjiGothic-Regular.otf
upjv-r   UniJIS-UTF16-V  HaranoAjiMincho-Regular.otf
upjv-g   UniJIS-UTF16-V  HaranoAjiGothic-Regular.otf

from dvisvgm.

t-tk avatar t-tk commented on July 28, 2024

Thank you for your comment.
I got intended results by using the following entries in the map file upjf.map.

t-tk/texlive-source@27ac1f7

upjf-r   unicode  HaranoAjiMincho-Regular.otf
upjf-g   unicode  HaranoAjiGothic-Regular.otf
upjv-r   unicode  HaranoAjiMincho-Regular.otf
upjv-g   unicode  HaranoAjiGothic-Regular.otf

from dvisvgm.

t-tk avatar t-tk commented on July 28, 2024

Thank you for your support.

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.