Skip to content

Commit

Permalink
v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
luxluth committed Jul 13, 2023
1 parent fd5b3ec commit a2719bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 37 deletions.
5 changes: 5 additions & 0 deletions .changeset/modern-ligers-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ass-html5': patch
---

Bug fixes in styled multilines (New way to draw text)
4 changes: 2 additions & 2 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export class Renderer {
previousTextPos = { x: 0, y: 0 }
currentWordsWidth = 0
lineWidth = this.ctx.measureText(lines[currentLine] as string).width
console.debug('line', lines[currentLine])
// console.debug('line', lines[currentLine])
switch (this.textAlign) {
case 'left':
x = position[0]
Expand Down Expand Up @@ -582,7 +582,7 @@ export class Renderer {

applyTweaks(tweaks: Tweaks) {
if (!tweaks.tweaked) {
console.debug('no tweaks')
// console.debug('no tweaks')
return {
positionChanged: false,
position: [0, 0],
Expand Down
35 changes: 0 additions & 35 deletions test.js

This file was deleted.

0 comments on commit a2719bb

Please sign in to comment.