| 245 | } |
| 246 | |
| 247 | void TextLayer::applyGradientToTextPaint(Paint& paint) { |
| 248 | if (_textLayout != nullptr) { |
| 249 | _gradientWrapper.update(_textLayout->getBounds()); |
| 250 | _gradientWrapper.applyToPaint(paint); |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | bool TextLayer::hasTextShadow() const { |
| 255 | auto isVisible = _textShadow.opacity > 0; |