Giter VIP home page Giter VIP logo

Comments (4)

GitHubRulesOK avatar GitHubRulesOK commented on June 19, 2024

Technically you have 11 lines of spaced out text, these can be concatenated into one line
issue 4004 out-overwrite.pdf

image

image

from sumatrapdf.

dk avatar dk commented on June 19, 2024

You have a point, but the pdf file you attached has the same problem, the last letter "d" is not selected either

from sumatrapdf.

GitHubRulesOK avatar GitHubRulesOK commented on June 19, 2024

The size of a selection is a guess based on a nominal spacing as there is no clue other that what the writer provides, I accepted the given values which will be computed by MuPDF (and its font reading dependencies)
The permutations for such a placement amounts to thousands of possibilities, since the letters can be placed in any order and still be counted as one word that contains a space character or more.
If I switch the font to MS Windows Arial it works
image
issue 4004 out-MSArial.pdf

However playing around with those values in the original, it does look like total width calculated is less than visible placements. so perhaps there is some oddity in the MuPDF assessment of PS Arial character widths. It would need to be compared with MuPDF reader to see which one is reducing (not increasing) the selection, but basically the custom font is either not providing/or not read as correct widths .

from sumatrapdf.

dk avatar dk commented on June 19, 2024

Ah, I wasn't aware that Sumatra is based on MuPDF. Just tried it, and it shows same issue. I shall try to talk to MuPDF dev then -- thank you!

from sumatrapdf.

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.