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

How to get these units?

New Here ,
Aug 09, 2008 Aug 09, 2008

Copy link to clipboard

Copied

Please follow the steps:
1. Edit->Preferences->Units & Display performance... to bring the dialog.
2. In "Units" group, we can change units for "General", "Stroke", "Type" and "Asian Type".

We can use AIUserSuite::GetUnitsString to get the general units, but how to get the other three units? Does anybody know it?

thanks
TOPICS
SDK

Views

2.6K

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
community guidelines
Adobe
Guide ,
Aug 11, 2008 Aug 11, 2008

Copy link to clipboard

Copied

Interesting, I don't see anything in the API for doing that. Unless someone can find it squirreled away somewhere, it looks like there might be a hole in the API where this is concerned.

Votes

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
community guidelines
New Here ,
Aug 11, 2008 Aug 11, 2008

Copy link to clipboard

Copied

Hi,
You can get these units with AIPreference Suite.

long units;
sAIPreference->GetIntegerPreference(NULL, "strokeUnits", &units);
sAIPreference->GetIntegerPreference(NULL, "text/units", &units);
sAIPreference->GetIntegerPreference(NULL, "text/asianunits", &units);

These suffix strings were found in AIPrefs file.

Votes

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
community guidelines
Guide ,
Aug 12, 2008 Aug 12, 2008

Copy link to clipboard

Copied

Very cool! Thanks!

Votes

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
community guidelines
New Here ,
Aug 12, 2008 Aug 12, 2008

Copy link to clipboard

Copied

where is AIPrefs file? thanks!

Votes

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
community guidelines
Contributor ,
Aug 13, 2008 Aug 13, 2008

Copy link to clipboard

Copied

You don't need to access the prefs file directly, the values are just stored there. They can be obtained using AIUserSuite::GetUnitsString.

Votes

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
community guidelines
New Here ,
Aug 14, 2008 Aug 14, 2008

Copy link to clipboard

Copied

LATEST
Thanks! Jeshua.

Votes

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