Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Text is point type or area type

Community Beginner ,
Aug 31, 2020 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

466
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
community guidelines
Adobe
Community Expert ,
Aug 31, 2020 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.

Votes

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
community guidelines
Community Beginner ,
Sep 01, 2020 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? 

Votes

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
community guidelines
Participant ,
Sep 01, 2020 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.

Votes

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
community guidelines
Enthusiast ,
Sep 03, 2020 Sep 03, 2020

Copy link to clipboard

Copied

LATEST

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 )
{

}

Votes

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
community guidelines