| 593 | } |
| 594 | |
| 595 | static void CheckTextLayerPathOption(std::shared_ptr<PAGExportSession> session, |
| 596 | pag::TextLayer* layer) { |
| 597 | if (layer->pathOption == nullptr || layer->pathOption->path == nullptr) { |
| 598 | return; |
| 599 | } |
| 600 | |
| 601 | auto perpendicularToPath = layer->pathOption->perpendicularToPath; |
| 602 | auto forceAlignment = layer->pathOption->forceAlignment; |
| 603 | if (perpendicularToPath->animatable() || perpendicularToPath->value != true) { |
| 604 | session->pushWarning(AlertInfoType::TextPathParamPerpendicularToPath); |
| 605 | } |
| 606 | if (forceAlignment->animatable() || forceAlignment->value != false) { |
| 607 | session->pushWarning(AlertInfoType::TextPathParamForceAlignment); |
| 608 | } |
| 609 | |
| 610 | if (HasVerticalText(layer->sourceText)) { |
| 611 | session->pushWarning(AlertInfoType::TextPathVertial); |
| 612 | } |
| 613 | |
| 614 | if (!layer->animators.empty()) { |
| 615 | session->pushWarning(AlertInfoType::TextPathAnimator); |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | static void CheckLayerProperty(std::shared_ptr<PAGExportSession> session, pag::Layer* layer, |
| 620 | void*) { |
no test coverage detected