Skip to main content
systems01h61704443
Known Participant
June 3, 2019
Answered

How To Modify Japanese Character Spacing Options

  • June 3, 2019
  • 2 replies
  • 1528 views

Dear Friends,

          We need to modify the Japanese character spacing options using Illustrator SDK API function.

          The red boxed option are need to handle on new plugin.

              

     Please note that we know this option are only placed Japanese illustrator version.

     We try to all API function for handled this option, but we could'n get any solution,

     So, if any one have idea about this option please guidance me to solve this problem.

With Regards,

   Vicky. 

This topic has been closed for replies.
Correct answer daitranthanhoa

Value of Tsume, AkiLeft,Akiright is number.

In SDK you can set by:

strTsume="0";

oCharFeature.SetTsume(atof(convertWstring2Char(strTsume)));

strAkiLeft="-1"; //Auto

oCharFeature.SetLeftAki(atof(convertWstring2Char(strAkiLeft)));

strAkiRight="-1"; //Auto

oCharFeature.SetRightAki(atof(convertWstring2Char(strAkiRight)));

2 replies

daitranthanhoa
daitranthanhoaCorrect answer
Inspiring
July 1, 2019

Value of Tsume, AkiLeft,Akiright is number.

In SDK you can set by:

strTsume="0";

oCharFeature.SetTsume(atof(convertWstring2Char(strTsume)));

strAkiLeft="-1"; //Auto

oCharFeature.SetLeftAki(atof(convertWstring2Char(strAkiLeft)));

strAkiRight="-1"; //Auto

oCharFeature.SetRightAki(atof(convertWstring2Char(strAkiRight)));

systems01h61704443
Known Participant
July 3, 2019

Hi Friend,

 

    Thanks for your reply.

      I was try your code on my plugin,but it works only on default(Initial) values like as below snap for your values.

    

     After that i try to change  strTsume,strAkiLeft and strAkiRight values like as 1,0 and 0.Text character space and position was changed.

     Then Japanese Character Spacing combo box values as empty like as below snap.      

   

     For Example: If i need to change SetRightAki value as 自動  into  ベタ  on Character Style/Space Panel,What to do?

      I have another one doubt about that, I understood that SetRightAki ,SetLeftAki and SetTsume all this function are only for modify or create text process. It is not possible to set default value of current working document Character Style/Space.

With Regards,

    Vicky

daitranthanhoa
Inspiring
July 3, 2019

It setting ok. it is emtpy because you selected 2 ranges. so they have 2 values.

A. Patterson
Inspiring
June 3, 2019

I don't know how to handle those options specifically, but the only thing I can offer is that maybe you're using the wrong composer engine? The default engine (kLatinCJKComposer) may ignore the API calls that deal with those specific settings. It's been a while, but I'm pretty sure that's how it handles all the arabic & hebrew specific settings when you're using the kLatinCJKComposer composer engine.