Skip to content

Commit

Permalink
fix type, add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Sep 4, 2023
1 parent f39c57d commit 3af5f0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

- Fix text rendering when text has both underline and shadow

### 9.2.0 (2023-05-14)

- More controls on clipping
Expand Down
2 changes: 1 addition & 1 deletion src/shapes/Text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ export class Text extends Shape<TextConfig> {
_useBufferCanvas() {
const hasUnderline = this.textDecoration().indexOf('underline') !== -1;
const hasShadow = this.hasShadow();
if (hasUnderline || hasShadow) {
if (hasUnderline && hasShadow) {
return true;
}
return super._useBufferCanvas();
Expand Down

0 comments on commit 3af5f0f

Please sign in to comment.