fix type, add changelog

This commit is contained in:
Anton Lavrenov 2023-09-04 11:42:31 -05:00
parent f39c57d000
commit 3af5f0f012
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/). 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) ### 9.2.0 (2023-05-14)
- More controls on clipping - More controls on clipping

View File

@ -607,7 +607,7 @@ export class Text extends Shape<TextConfig> {
_useBufferCanvas() { _useBufferCanvas() {
const hasUnderline = this.textDecoration().indexOf('underline') !== -1; const hasUnderline = this.textDecoration().indexOf('underline') !== -1;
const hasShadow = this.hasShadow(); const hasShadow = this.hasShadow();
if (hasUnderline || hasShadow) { if (hasUnderline && hasShadow) {
return true; return true;
} }
return super._useBufferCanvas(); return super._useBufferCanvas();