Copy link to clipboard
Copied
Is it possible to show a preview about selected font in UI with jsx for Illustrator ?
I share my script but it doesn't work
My script :
Copy link to clipboard
Copied
Hi @Jeffosaure, unfortunately in ScriptUI in Illustrator we can't set fonts. This line:
previewText.graphics.font = ScriptUI.newFont("Helvetica", "BOLD", 16);
doesn't work. It used to work, many, many years ago, but not since.
The best you could do is to generate a textFrame with your preview text and render it to the document. You can use Document.activeView which will give you a View object, which has a bounds and center property. Not sure if that's workable... just an idea.
- Mark
Copy link to clipboard
Copied
I try it but not workable
II figure if Illustrator can display previews, there's no reason why we can't.
It should even be possible to do so in the drop-down menu, since that's how Illustrator does it.
Copy link to clipboard
Copied
I show this but how do that with Illustrator and fonts sytem ?
https://www.youtube.com/watch?v=3onCZg4z-Mg
Copy link to clipboard
Copied
He is using CEP/ Extension. which is basically a website in an illustrator panel. It can do a lot more UI stuff than ScriptUI.
Copy link to clipboard
Copied
Hi iLLMonkey
Thxs for your answer
I understand that I need other things
So, what do I need?
What are all the things I need to do this ?
It's my grail quest 😛
Copy link to clipboard
Copied
I can help you get started the same way I did. I started with this video by the same guy:
https://www.youtube.com/watch?v=1MirbjuLgSI
I can give you a few tips I wish I knew when I started. First of all, CSInterface(); is the most important thing to understand, you're using this to dive into and execute ExtendScript functions. Once you understand its method "evalScript" and its callback function you're halfway there. So, CSInterface, evalScript, and evalScript->callback. You'll need to tie it all together with javascript/html and CSS. Good luck!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more