Copy link to clipboard
Copied
Hi,
Is there a way to find/search for texts with font-size not equal to a specific number (let say 12pt)?
Thanks.
Create a red swatch. Change the color of all text in 12pt to red. All remaining black text has another size. When dine delete the red swatch and replace it with black again.
(If your text uses color: no problem. Just pick any other text attribute which can easily be un-done.)
Copy link to clipboard
Copied
That sounds like something that could be done with GREP (pattern matching), available in the Find/Change dialog. I'm not enough of an ace with GREP to give you the answer, however. Here's a discussion that covers a similar topic:
https://indesignsecrets.com/topic/grep-for-negative-pattern-match-60
Copy link to clipboard
Copied
Thanks, but that covers only words/letters, I need to "omit" font style...
Copy link to clipboard
Copied
GREP could not handle that. It could be scripted, though. What do you want to do to the text after you find it?
Copy link to clipboard
Copied
Got it, thanks.
I need to look for any text that does not have horizontal scale 94% and if found, change it to horizontal scale 94%.
Please give me some inputs 🙂
Copy link to clipboard
Copied
For any text with font size not equal to 12pt?
Copy link to clipboard
Copied
No that was just an example...
Copy link to clipboard
Copied
Jongware's solution is good. If all text in the document should be 94% horizontal scale, this one line script should do it (though it would miss text in tables).
app.activeDocument.stories.everyItem().texts.everyItem().horizontalScale = 94;
If you need tables, too:
Copy link to clipboard
Copied
Create a red swatch. Change the color of all text in 12pt to red. All remaining black text has another size. When dine delete the red swatch and replace it with black again.
(If your text uses color: no problem. Just pick any other text attribute which can easily be un-done.)
Copy link to clipboard
Copied
Got it, this could do it 🙂
Copy link to clipboard
Copied
Hi there,
Thanks for reaching out. I hope your issue is resolved now. We'd appreciate if you can mark the appropriate answer correct.
If you used any other method, please share it here. It'll help other users having similar concern.
If you still have issues, let us know. We'll be happy to help.
Regards,
Ashutosh