MCPcopy Create free account
hub / github.com/Tencent/libpag / GetTextPathOptions

Function GetTextPathOptions

exporter/src/export/data/TextProperty.cpp:477–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477static pag::TextPathOptions* GetTextPathOptions(const AEGP_StreamRefH& streamHandle) {
478 auto pathOptions = new pag::TextPathOptions();
479 pag::ID maskID = GetValue(streamHandle, "ADBE Text Path", AEStreamParser::MaskIDParser);
480
481 pathOptions->path = new pag::MaskData();
482 pathOptions->path->id = maskID;
483 if (pathOptions->path->id <= 0) {
484 delete pathOptions;
485 return nullptr;
486 }
487 pathOptions->reversedPath =
488 GetProperty(streamHandle, "ADBE Text Reverse Path", AEStreamParser::BooleanParser);
489 pathOptions->perpendicularToPath =
490 GetProperty(streamHandle, "ADBE Text Perpendicular To Path", AEStreamParser::BooleanParser);
491 pathOptions->forceAlignment =
492 GetProperty(streamHandle, "ADBE Text Force Align Path", AEStreamParser::BooleanParser);
493 pathOptions->firstMargin =
494 GetProperty(streamHandle, "ADBE Text First Margin", AEStreamParser::FloatParser);
495 pathOptions->lastMargin =
496 GetProperty(streamHandle, "ADBE Text Last Margin", AEStreamParser::FloatParser);
497 return pathOptions;
498}
499
500template <typename T>
501static void ModifyPropertyKeyframe(pag::Property<T>* property) {

Callers 1

GetTextPropertiesFunction · 0.85

Calls 2

GetValueFunction · 0.85
GetPropertyFunction · 0.85

Tested by

no test coverage detected