jimp-dev/jimp

Error in Text wrapping when in aligning to right

オープン

#997 opened on 2021/03/26

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (785 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (13,218 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド