jimp-dev / jimp-dev/jimp

Error in Text wrapping when in aligning to right

Open
#997 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.