Skip to content

Commit

Permalink
fix: text drawing position
Browse files Browse the repository at this point in the history
  • Loading branch information
ufocoder committed Apr 14, 2024
1 parent 888089c commit 50de619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/TextContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class TextContent {
this.text.forEach((line, index) => {
this.canvas.drawText({
x: this.width / 2,
y: this.height / 2 - lineHeight * (this.text.length / 2 - index),
y: this.height / 2 - lineHeight * (this.text.length / 2 - index - 0.5),
align: 'center',
text: line,
color: 'white',
Expand Down

0 comments on commit 50de619

Please sign in to comment.