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

How to get these units?

New Here ,
Aug 09, 2008 Aug 09, 2008
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
2.7K
Translate
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
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.
Translate
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
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.
Translate
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
Very cool! Thanks!
Translate
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
where is AIPrefs file? thanks!
Translate
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
You don't need to access the prefs file directly, the values are just stored there. They can be obtained using AIUserSuite::GetUnitsString.
Translate
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
LATEST
Thanks! Jeshua.
Translate
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