Skip to content

Commit

Permalink
Fix defaults args for BitampFont.from setTransform (pixijs#6944)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Oct 16, 2020
1 parent 011fff1 commit 45dc59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/text-bitmap/src/utils/drawGlyph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function drawGlyph(
context.fillText(char, tx, ty + metrics.lineHeight - fontProperties.descent);
}

context.setTransform();
context.setTransform(1, 0, 0, 1, 0, 0); // defaults needed for older browsers (e.g. Opera 29)

context.fillStyle = 'rgba(0, 0, 0, 0)';
}

0 comments on commit 45dc59a

Please sign in to comment.