Skip to content

Some fonts splits words #1275

@daniele-gusmini

Description

@daniele-gusmini

What were you trying to do?

I'm modifying a pdf file, adding some text in specific places.

How did you attempt to do it?

I added the new font trough FontKit and inserted the text with drawText

Here the code
pages[2].drawText("effettuare", { x: x_pos, y: y_pos, size: fontSize, font: hindRegular, color: white, rotate: degrees(0), })

What actually happened?

It is working properly for most part of the words. But if I write for example "effettuare" it spits the word. The result on the pdf is "eff ettuare"

image

What did you expect to happen?

I would expect the word to be connected

How can we reproduce the issue?

Open the fiddle and download the file
https://jsfiddle.net/danigusm/q1796gr0/4/

Version

1.17.1

What environment are you running pdf-lib in?

Browser

Checklist

  • My report includes a Short, Self Contained, Correct (Compilable) Example.
  • I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions