jimp-dev/jimp

Error in Text wrapping when in aligning to right

Open

#997 创建于 2021年3月26日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (13,218 star) (785 fork)batch import
bughelp wanted

描述

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

贡献者指南

Error in Text wrapping when in aligning to right · jimp-dev/jimp#997 | Good First Issue