Highlighted

Text is point type or area type

Community Beginner ,
Aug 31, 2020

Copy link to clipboard

Copied

Dear Friends,

     How to identify the text is point type or Area type?

     Pleae tell, Is there any aip function available for check text is point type or Area type.

 

Regards,

Jayashree.J

Topics

SDK

Views

55

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Text is point type or area type

Community Beginner ,
Aug 31, 2020

Copy link to clipboard

Copied

Dear Friends,

     How to identify the text is point type or Area type?

     Pleae tell, Is there any aip function available for check text is point type or Area type.

 

Regards,

Jayashree.J

Topics

SDK

Views

56

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Aug 31, 2020

Copy link to clipboard

Copied

Hi Jayashree,

at a glance you will notice that area type will have a thread box:

Screen Shot 2020-09-01 at 08.38.57.jpg

point type does not.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Sep 01, 2020

Copy link to clipboard

Copied

Hi Grant_H,

    Thanks for your reply, We need to achieve it by c++ programming. Hence let me know any aip function availble for these process? 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Participant ,
Sep 01, 2020

Copy link to clipboard

Copied

You can use AITextFrameSuite::GetType and you will get AITextType which can be one of the following:

 

kUnknownTextType  
kPointTextType 

Point text, defined by an anchor point for the position of the first character.

kInPathTextType 

In-path text, an associated path object defines the area the text flows into.

kOnPathTextType 

On-path text, an associated path object defines the area the text flows along.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Enthusiast ,
Sep 03, 2020

Copy link to clipboard

Copied

This is a sample get FrameType  of TextFrame:

AIArtSpec specs[1] = { { kTextFrameArt,0,0 } };
SnpArtSetHelper textFrameArtSet(specs, 1);

AIArtHandle textFrameArt = textFrameArtSet[0];

TextFrameRef textFrameRef = NULL;
result = sAITextFrame->GetATETextFrame(textFrameArt, &textFrameRef);
ITextFrame textFrame(textFrameRef);
FrameType itype = textFrame.GetType();
if (itype == kPointTextType)
{
     //Point text
}
else if (itype == kInPathTextType)
{
     //Area text
}
else if (itype == kOnPathTextType )
{

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...