jimp-dev/jimp

Error in Text wrapping when in aligning to right

Aberta

#997 aberto em 26 de mar. de 2021

 (0 comentário) (0 reação) (0 responsável)JavaScript (785 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (13.218 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Expected Behavior

Image.print(font, x0 , y0 , { text : 'long'text ,...', alignmentX: HORIZONTAL_ALIGN_RIGHT,alignmentY : VERTICAL_ALIGN_TOP } , maxWidth, maxHeight) should see the text print from rightAxis+x0-maxWidth and wrap when rightAxis+x0 is reached

Current Behavior

The text is printing starting at maxWidth

Failure Information (for bugs)

Steps to Reproduce

Context

  • Jimp Version: 0.16.1
  • Operating System: Windows10
  • Node version: v12.19.0

Failure Logs

Guia do colaborador