Copy link to clipboard
Copied
Hi,
I have one requiement to change the Anti-Aliase value based on the font through script.
On that ArtLayer there are mixed of fonts used. But my requirement is to change the particular content which is applid the particular font.
Here i need to change all the content which is applied the "Courier New Regular" font.
Please check and help me to our from this.
Thanks
Asuvath
Copy link to clipboard
Copied
I don't think that is in any way possible. If at all you would likely have to filter for a specific string, but to my admitted limited knowledge paragraph text does not expose the actual font options selectively via script, so there would be no way of knowing what font is used where.
Mylenium
Copy link to clipboard
Copied
I'll extend your knowledge of my experience, this is possible, but not easy 😉
Copy link to clipboard
Copied
Thanks Kukurykus. I can able to learn. Can you please?
Thanks
Asuvath
Copy link to clipboard
Copied
Have you tried to browse the forum for similar requests?
Copy link to clipboard
Copied
Isn't the anti-aliasing style applied to all the text at once? That is, we cannot stay within the same text layer if we need to apply different anti-aliasing styles. It's really hard.
Copy link to clipboard
Copied
Loll that's true. I tried it now manually and found it doesn't work the way as applying a font kind. So if you select part of text on the same layer, it is going to change whole text in that layer. Why then the author ask for a thing he knows he can't accomplish that manually 😕
Copy link to clipboard
Copied
I tried removing the property from the textKey descriptor and moving it inside the style. In this case, anti-aliasing is reset to its default value. Values within styles are ignored.
In theory, we can split the text into 2 layers - in one text with one anti-aliasing style, in the other with another. But there is a problem of positioning text fragments (in a monospaced courier, you can fill the text with spaces, but this trick will not work with other fonts)
Copy link to clipboard
Copied
Thanks for Checking....