Skip to main content
ajabon grinsmith
Community Expert
Community Expert
February 9, 2024
Answered

Illustrator: is able to get postscript names of elements of composite fonts?

  • February 9, 2024
  • 1 reply
  • 565 views

Hi there, 

I am looking for a way to get the "postscript name" of a font that is an element of a "composite font" in Illustrator.

My friend sttk3 gave me a way to get the file name of the font. it written by Japanese.

【解決】使用フォント一覧をテキストファイルにしたい!
However, I cannot find a way to get the postscript name from it.

I intend to implement this as a feature of the CEP extension.
Is there a way to accomplish this in jsx or js?

regards.

This topic has been closed for replies.
Correct answer sttk3

それはまた別の記事で書きました。多分encoding = 'binary'で読み込むのがポイントかと思います。
【解決】スクリプトで合成フォントの内訳のPostScript名を取得したい!

 

I wrote about that in another article. Maybe the point is to read it with encoding = 'binary'.
SOLUTION: Want to get the PostScript name of the breakdown of the composite font via script!

1 reply

ajabon grinsmith
Community Expert
Community Expert
March 6, 2024

Since then,

I found a temp files in the application settings that lists the contents of composite fonts.

 

(The file path below is, for example, the Japanese version.)

mac
/Users/[user]/Library/Application Support/Adobe/Adobe Illustrator 27/ja_JP/合成フォント/Temp.localized

win
C\USERS\[user]\AppData\Roaming\Adobe\Adobe Illustrator 27 Settings\ja_JP\x64\Temp

 

They were able to open it in a suitable text editor. It contains information that seems useful.
However, I cannot open it in ExtendScript.
The debugger warns me when I refer to the temp file.
"Failed to retrieve variables. Details: CDATA is not closed."

 

Is there any way to do this?

sttk3Correct answer
Legend
March 6, 2024

それはまた別の記事で書きました。多分encoding = 'binary'で読み込むのがポイントかと思います。
【解決】スクリプトで合成フォントの内訳のPostScript名を取得したい!

 

I wrote about that in another article. Maybe the point is to read it with encoding = 'binary'.
SOLUTION: Want to get the PostScript name of the breakdown of the composite font via script!

ajabon grinsmith
Community Expert
Community Expert
March 7, 2024

うわー、記事の公開に気付いてませんでした…さすがです。

問題なく動作しました。助かりました!