You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to reduce the space between the words of a text.
I used the 'wordSpacing' property, but when adding a negative number to the 'wordSpacing', the justification of the text is lost. Below is the text that I am trying to change the distance between the words:
Code sample
let text = "Com a história de "o menino e o robô" compreendemos o perigo da robótica, não há dados científicos
sobre robôs dominarem o mundo, mas a riscos de exposição a novos riscos, como campos eletromagnéticos, acidentes,
desempregos devido a chegada da automação, além de ataques cibernéticos e desenvolvimento de armas autônomas.";
Bug Report
Description of the problem
I would like to reduce the space between the words of a text.
I used the 'wordSpacing' property, but when adding a negative number to the 'wordSpacing', the justification of the text is lost. Below is the text that I am trying to change the distance between the words:
Code sample
let text = "Com a história de "o menino e o robô" compreendemos o perigo da robótica, não há dados científicos
sobre robôs dominarem o mundo, mas a riscos de exposição a novos riscos, como campos eletromagnéticos, acidentes,
desempregos devido a chegada da automação, além de ataques cibernéticos e desenvolvimento de armas autônomas.";
let textOptions = {
width: 436,
align: 'justify',
indent: 27.638,
lineBreak: true,
wordSpacing: -2.0,
lineGap: -6.0
};
pdfDoc
.font(POPPINS_REGULAR.ttf)
.fill("#000000")
.fontSize(22)
.text(text, 69, 64, textOptions)
Your environment
The text was updated successfully, but these errors were encountered: