| 159 | } |
| 160 | |
| 161 | static void ApplyPaintToPath(const tgfx::Paint& paint, tgfx::Path* path) { |
| 162 | if (paint.getStyle() == tgfx::PaintStyle::Fill || path == nullptr) { |
| 163 | return; |
| 164 | } |
| 165 | auto strokePath = *path; |
| 166 | if (const auto stroke = paint.getStroke()) { |
| 167 | stroke->applyToPath(&strokePath); |
| 168 | } |
| 169 | *path = strokePath; |
| 170 | } |
| 171 | |
| 172 | bool Text::hitTest(RenderCache*, float x, float y) { |
| 173 | for (auto& textRun : textRuns) { |
no test coverage detected